代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 59d4dd7fdb0c33dc4c3be2330606ec7724cb368c Mon Sep 17 00:00:00 2001
From: jingrui <jingrui@huawei.com>
Date: Fri, 11 Jan 2019 17:16:21 +0800
Subject: [PATCH 072/111] pause: fix test can not stop paused
container failed
reason: pause function moved to docker and does not support stop paused
container. return error message when stop a paused container.
Change-Id: Ia7b15877980088cdb4eaf9f7e3dd86667df0157b
Signed-off-by: jingrui <jingrui@huawei.com>
---
components/engine/integration/container/pause_test.go | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/components/engine/integration/container/pause_test.go b/components/engine/integration/container/pause_test.go
index 8dd2d784b7..da274c89ce 100644
--- a/components/engine/integration/container/pause_test.go
+++ b/components/engine/integration/container/pause_test.go
@@ -79,9 +79,10 @@ func TestPauseStopPausedContainer(t *testing.T) {
assert.NilError(t, err)
err = client.ContainerStop(ctx, cID, nil)
- assert.NilError(t, err)
-
- poll.WaitOn(t, container.IsStopped(ctx, client, cID), poll.WithDelay(100*time.Millisecond))
+ // assert.NilError(t, err)
+ // poll.WaitOn(t, container.IsStopped(ctx, client, cID), poll.WithDelay(100*time.Millisecond))
+ assert.Check(t, is.ErrorContains(err, "is paused"))
+ client.ContainerUnpause(ctx, cID)
}
func getEventActions(t *testing.T, messages <-chan events.Message, errs <-chan error) []string {
--
2.17.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。