Skip to content

Commit 0c5c47a

Browse files
authored
Merge pull request #411 from Random-Liu/fix-readonly-fs-test
Fix readonly filesystem test.
2 parents 1373ad1 + c6d4258 commit 0c5c47a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/validate/security_context.go

+3
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ var _ = framework.KubeDescribe("Security Context", func() {
392392

393393
By("start container")
394394
startContainer(rc, containerID)
395+
Eventually(func() runtimeapi.ContainerState {
396+
return getContainerStatus(rc, containerID).State
397+
}, time.Minute, time.Second*4).Should(Equal(runtimeapi.ContainerState_CONTAINER_EXITED))
395398

396399
By("Check whether rootfs is writable")
397400
checkRootfs(podConfig, logPath, readOnlyRootfs)

0 commit comments

Comments
 (0)