X Tutup
Skip to content

Commit eda50b1

Browse files
author
Lucas Molas
committed
Fix race condition in IO test (TestNewAttach)
Signed-off-by: Lucas Molas <lmolas@fundacionsadosky.org.ar>
1 parent 3affaff commit eda50b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cio/io_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func TestNewAttach(t *testing.T) {
8787
actualStdin, err := ioutil.ReadAll(producers.Stdin)
8888
require.NoError(t, err)
8989

90-
io.Cancel()
9190
io.Wait()
91+
io.Cancel()
9292
assert.NoError(t, io.Close())
9393

9494
assert.Equal(t, expectedStdout, stdout.String())

0 commit comments

Comments
 (0)
X Tutup