mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/simulations: replace reflect.DeepEqual with maps.Equal
This commit is contained in:
parent
0bd03dbc55
commit
2bc3536299
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue