Skip to content

Commit

Permalink
Merge pull request #1940 from schomatis/fix-io-testnewattach-race
Browse files Browse the repository at this point in the history
Fix race condition in IO test (TestNewAttach)
  • Loading branch information
crosbymichael committed Dec 21, 2017
2 parents 634a0e8 + eda50b1 commit c07ede4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cio/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func TestNewAttach(t *testing.T) {
actualStdin, err := ioutil.ReadAll(producers.Stdin)
require.NoError(t, err)

io.Cancel()
io.Wait()
io.Cancel()
assert.NoError(t, io.Close())

assert.Equal(t, expectedStdout, stdout.String())
Expand Down

0 comments on commit c07ede4

Please sign in to comment.