From 7d285ed7fd9e489231d88c883bdb48dc72cfe9a3 Mon Sep 17 00:00:00 2001 From: Nikita Stroganov Date: Mon, 1 May 2023 12:34:24 +0000 Subject: [PATCH] fix gossip test --- gossip/gossip_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossip/gossip_test.go b/gossip/gossip_test.go index e109c44..ce88d16 100644 --- a/gossip/gossip_test.go +++ b/gossip/gossip_test.go @@ -95,9 +95,9 @@ func TestGossip_TwoPeers(t *testing.T) { require.Contains(t, members1, peer0.Addr()) require.Contains(t, members1, peer1.Addr()) - peer1.UpdateMeta(&meshpb.PeerMeta{Name: "bob"}) + peer0.UpdateMeta(&meshpb.PeerMeta{Name: "bob"}) time.Sleep(waitPeriod) - require.Equal(t, "bob", peer0.GetMembers()[peer1.Addr()].Name) + require.Equal(t, "bob", peer1.GetMembers()[peer0.Addr()].Name) peer1.UpdateMeta(&meshpb.PeerMeta{Name: "sam"}) time.Sleep(waitPeriod)