From bdc381556e3789564c16aa550911b0831eadf595 Mon Sep 17 00:00:00 2001 From: Guillaume Michel Date: Thu, 20 Feb 2025 16:32:29 +0100 Subject: [PATCH] fix: flaky TestInvalidServer (#1043) --- dht_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dht_test.go b/dht_test.go index 03929800..f942cf65 100644 --- a/dht_test.go +++ b/dht_test.go @@ -1577,9 +1577,9 @@ func TestInvalidServer(t *testing.T) { if !s1Found { t.Fatal("Well behaving DHT server should have been added to the server routing table") } - if s0.routingTable.Find(m1.self) != "" { + if s0.routingTable.Find(m1.self) != "" && s0.routingTable.Find(m0.self) != "" { t.Log("s0:", s0.self, ", s1:", s1.self, ", m0:", m0.self, ", m1:", m1.self) - t.Log("Routing Table peers", m0.routingTable.ListPeers()) + t.Log("Routing Table peers", s0.routingTable.ListPeers()) t.Fatal("Misbehaving DHT servers should not be added to routing table if well populated") } }