Update build_cancellation_test.go

This commit is contained in:
Adrien Delorme 2020-05-08 12:06:41 +02:00
parent 2f63e4e79d
commit 2ef758763f
1 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,11 @@ func TestBuildCommand_RunContext_CtxCancel(t *testing.T) {
codeC := make(chan int)
go func() {
defer close(codeC)
codeC <- c.RunContext(ctx, tt.args)
cfg, ret := c.ParseArgs(tt.args)
if ret != 0 {
t.Fatal("ParseArgs failed.")
}
codeC <- c.RunContext(ctx, cfg)
}()
t.Logf("waiting for passing tests if any")
b.wg.Wait() // ran `tt.parallelPassingTests` times