mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
negentropy: test lists equality instead of matching elements.
This commit is contained in:
parent
286040c4ce
commit
495c6e6e75
@ -144,7 +144,7 @@ func runTestWith(t *testing.T,
|
||||
haves = append(haves, item)
|
||||
}
|
||||
slices.Sort(haves)
|
||||
require.ElementsMatch(t, expectedHave, haves, "wrong have")
|
||||
require.Equal(t, expectedHave, haves, "wrong have")
|
||||
}()
|
||||
|
||||
go func() {
|
||||
@ -163,7 +163,7 @@ func runTestWith(t *testing.T,
|
||||
havenots = append(havenots, item)
|
||||
}
|
||||
slices.Sort(havenots)
|
||||
require.ElementsMatch(t, expectedNeed, havenots, "wrong need")
|
||||
require.Equal(t, expectedNeed, havenots, "wrong need")
|
||||
}()
|
||||
|
||||
wg.Wait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user