fix(desktop): correct display_name in content_matches_nip_ap_vector compaction

The sample_persona() refactor in the ratchet commit left out a display_name
override — sample_persona() returns 'Test Persona' but the NIP-AP vector
fixture asserts 'Test Agent'. Add p.display_name = 'Test Agent' alongside
the existing p.id override.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
Duncan
2026-09-01 12:51:42 -04:00
parent d5343ef71a
commit 00a04c13b4

View File

@@ -381,6 +381,7 @@ fn content_matches_nip_ap_vector() {
let record = {
let mut p = sample_persona();
p.id = "test-agent".to_string();
p.display_name = "Test Agent".to_string();
p
};
let event = build_persona_event(&record)