From ebb026f47e58187830106607c36aad2a85b3e30f Mon Sep 17 00:00:00 2001 From: Cameron Davison Date: Sat, 13 Aug 2016 22:26:53 -0500 Subject: [PATCH] duplicate check for deep equals of frame order --- command/agent/fs_endpoint_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/command/agent/fs_endpoint_test.go b/command/agent/fs_endpoint_test.go index 6e4113f6f75..152832e99f9 100644 --- a/command/agent/fs_endpoint_test.go +++ b/command/agent/fs_endpoint_test.go @@ -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