Skip to content

Commit

Permalink
fix: flaky TestInvalidServer (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel authored Feb 20, 2025
1 parent eab1068 commit bdc3815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit bdc3815

Please sign in to comment.