Skip to content

Commit 0a191e0

Browse files
committed
mtest: repeatedly run docker stop
Signed-off-by: Masayuki Ishii <masa213f@gmail.com>
1 parent 8147c82 commit 0a191e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mtest/robustness_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ func testRobustness() {
7575
// When a control plane node is down, CKE should not maintain k8s components.
7676

7777
By("stopping kubelet")
78-
execAt(node5, "docker", "stop", "kubelet")
7978
Eventually(func(g Gomega) {
79+
// To ensure idempotency, do not perform error checking.
80+
execAt(node5, "docker", "stop", "kubelet")
81+
8082
stdout, stderr, err := kubectl("get", "-o=json", "node", node5)
8183
g.Expect(err).NotTo(HaveOccurred(), "stderr: %s", stderr)
8284

0 commit comments

Comments
 (0)