mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
duplicate check for deep equals of frame order
This commit is contained in:
@@ -375,9 +375,11 @@ func TestStreamFramer_Order(t *testing.T) {
|
||||
select {
|
||||
case <-resultCh:
|
||||
case <-time.After(10 * time.Duration(testutil.TestMultiplier()) * bWindow):
|
||||
got := receivedBuf.String()
|
||||
want := expected.String()
|
||||
t.Fatalf("Got %v; want %v", got, want)
|
||||
if reflect.DeepEqual(expected, receivedBuf) {
|
||||
got := receivedBuf.String()
|
||||
want := expected.String()
|
||||
t.Fatalf("Got %v; want %v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
// Close the reader and wait. This should cause the runner to exit
|
||||
|
||||
Reference in New Issue
Block a user