Update build_cancellation_test.go

pull/9139/head
Adrien Delorme 6 years ago
parent 2f63e4e79d
commit 2ef758763f

@ -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

Loading…
Cancel
Save