Skip to content

Commit 2c1ef39

Browse files
committed
test: use set_name in a test_contact_name_update test
1 parent 18b7448 commit 2c1ef39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/events/chatlist_events.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ mod test_chatlist_events {
247247

248248
bob.evtracker.clear_events();
249249
// set name
250-
let addr = alice_on_bob.get_addr();
251-
Contact::create(&bob, "Alice2", addr).await?;
250+
alice_on_bob.id.set_name(&bob, "Alice2").await?;
252251
assert!(bob.add_or_lookup_contact(&alice).await.get_display_name() == "Alice2");
253252

254253
wait_for_chatlist_all_items(&bob).await;

0 commit comments

Comments
 (0)