Use channel to propagate the stop info of sandbox
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
@@ -36,7 +36,7 @@ func TestWaitSandboxStop(t *testing.T) {
|
||||
}{
|
||||
"should return error if timeout exceeds": {
|
||||
state: sandboxstore.StateReady,
|
||||
timeout: 2 * stopCheckPollInterval,
|
||||
timeout: 200 * time.Millisecond,
|
||||
expectErr: true,
|
||||
},
|
||||
"should return error if context is cancelled": {
|
||||
|
||||
Reference in New Issue
Block a user