Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions e2e/tests/ide/browser_returns.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,12 @@ var _ = ginkgo.Describe(
}).WithTimeout(30*time.Second).WithPolling(500*time.Millisecond).
Should(gomega.Succeed(), "helper port-forward at %s never came up", addr)

// Now sleep past the OLD 5s idle window with NO connections.
time.Sleep(8 * time.Second)
// The helper must outlive an idle period with no client connections.
gomega.Consistently(func() error {
return syscall.Kill(state.PID, 0)
}).WithTimeout(8*time.Second).WithPolling(500*time.Millisecond).
Should(gomega.Succeed(),
"expected helper PID %d to stay alive through 8s idle", state.PID)

// And the listener must still accept.
conn, err := net.DialTimeout("tcp", addr, 3*time.Second)
Expand Down
Loading