diff --git a/p2p/simulations/http_test.go b/p2p/simulations/http_test.go index cd03e600f3..7f990eff0b 100644 --- a/p2p/simulations/http_test.go +++ b/p2p/simulations/http_test.go @@ -21,10 +21,10 @@ import ( "flag" "fmt" "log/slog" + "maps" "math/rand" "net/http/httptest" "os" - "reflect" "sync" "sync/atomic" "testing" @@ -459,7 +459,7 @@ loop: if actual[filter] > expected[filter] { t.Fatalf("received too many msgs for filter: %v", filter) } - if reflect.DeepEqual(actual, expected) { + if maps.Equal(actual, expected) { return }