Skip to content

Commit

Permalink
Merge pull request #1584 from novilabs/stream-framer-order
Browse files Browse the repository at this point in the history
duplicate check for deep equals of frame order
  • Loading branch information
dadgar authored Aug 15, 2016
2 parents 184b027 + ebb026f commit 47f10d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions command/agent/fs_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47f10d1

Please sign in to comment.