Use channel to propagate the stop info of sandbox
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
@@ -68,10 +68,6 @@ func TestWaitContainerStop(t *testing.T) {
|
||||
)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, c.containerStore.Add(container))
|
||||
if test.status.FinishedAt != 0 {
|
||||
// Fake the TaskExit event
|
||||
container.Stop()
|
||||
}
|
||||
ctx := context.Background()
|
||||
if test.cancel {
|
||||
cancelledCtx, cancel := context.WithCancel(ctx)
|
||||
|
||||
Reference in New Issue
Block a user