Skip to content

Commit

Permalink
fix race condition in acceptance test
Browse files Browse the repository at this point in the history
Signed-off-by: JT Archie <[email protected]>
  • Loading branch information
Kira Boyle authored and rizwanreza committed Jul 20, 2020
1 parent 17dff38 commit a26f7e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions winfsinjector/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,8 @@ windows2019fs/windows2016fs-MISSING-IMAGE-TAG.tgz:
os.Stdout = tmp
}()
os.Stdout = w
go func() {
err = app.Run(inputTile, outputTile, registry, workingDir)
w.Close()
}()
err = app.Run(inputTile, outputTile, registry, workingDir)
w.Close()

Expect(err).ToNot(HaveOccurred())
stdout, _ := ioutil.ReadAll(r)
Expand Down

0 comments on commit a26f7e7

Please sign in to comment.