Skip to content

Commit 5b78f40

Browse files
authored
gexec: allow more headroom for SIGABRT-related unit tests (#581)
1 parent 061fd26 commit 5b78f40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gexec/session_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ var _ = Describe("Session", func() {
130130
Expect(err).ShouldNot(HaveOccurred())
131131

132132
session.Signal(syscall.SIGABRT)
133-
Eventually(session).Should(Exit(128 + 6))
133+
Eventually(session).WithTimeout(5 * time.Second).Should(Exit(128 + 6))
134134
})
135135

136136
It("should ignore sending a signal if the command did not start", func() {
@@ -251,9 +251,9 @@ var _ = Describe("Session", func() {
251251

252252
Signal(syscall.SIGABRT)
253253

254-
Eventually(session1).Should(Exit(128 + 6))
255-
Eventually(session2).Should(Exit(128 + 6))
256-
Eventually(session3).Should(Exit(128 + 6))
254+
Eventually(session1).WithTimeout(5 * time.Second).Should(Exit(128 + 6))
255+
Eventually(session2).WithTimeout(5 * time.Second).Should(Exit(128 + 6))
256+
Eventually(session3).WithTimeout(5 * time.Second).Should(Exit(128 + 6))
257257
})
258258
})
259259

0 commit comments

Comments
 (0)