Commit 56d9e3fc authored by hannahhoward's avatar hannahhoward

fix(providequerymanager): improve test stability

Removed a minor condition check that could fail in some cases just due to timing, but not a code
issue
parent 1eb28a22
......@@ -211,9 +211,7 @@ func TestCancelManagerExitsGracefully(t *testing.T) {
secondPeersReceived = append(secondPeersReceived, p)
}
if len(firstPeersReceived) <= 0 ||
len(firstPeersReceived) >= len(peers) ||
len(secondPeersReceived) <= 0 ||
if len(firstPeersReceived) >= len(peers) ||
len(secondPeersReceived) >= len(peers) {
t.Fatal("Did not cancel requests in progress correctly")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment