Update build_cancellation_test.go
This commit is contained in:
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…
Reference in New Issue