Skip to content

Commit 303e219

Browse files
authored
Merge pull request #517 from Random-Liu/no-timeout-for-check
The check should not have 1s timeout.
2 parents 5e59094 + 3d826ae commit 303e219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/validate/container.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ var _ = framework.KubeDescribe("Container", func() {
141141
Expect(err).Should(HaveOccurred(), "execSync should timeout")
142142

143143
By("timeout exec process should be gone")
144-
stdout, stderr, err := rc.ExecSync(containerID, checkSleepCmd, time.Second)
144+
stdout, stderr, err := rc.ExecSync(containerID, checkSleepCmd,
145+
time.Duration(defaultExecSyncTimeout)*time.Second)
145146
framework.ExpectNoError(err)
146147
Expect(stderr).To(BeEmpty())
147148
Expect(strings.TrimSpace(string(stdout))).To(BeEmpty())

0 commit comments

Comments
 (0)