We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5722f1 + d4360fa commit f6b5079Copy full SHA for f6b5079
1 file changed
internal/polecat/session_manager_test.go
@@ -437,8 +437,15 @@ func TestVerifyStartupNudgeDelivery_IdleAgent(t *testing.T) {
437
tm := tmux.NewTmux()
438
sessionName := "gt-test-nudge-verify-" + t.Name()
439
440
- // Kill any orphaned session from a previous interrupted test run.
+ // Kill any orphaned session from a previous interrupted test run,
441
+ // then wait for tmux to fully destroy it (kill-session can be async).
442
_ = tm.KillSession(sessionName)
443
+ for i := 0; i < 20; i++ {
444
+ if exists, _ := tm.HasSession(sessionName); !exists {
445
+ break
446
+ }
447
+ time.Sleep(50 * time.Millisecond)
448
449
450
// Create a tmux session with a shell
451
if err := tm.NewSession(sessionName, os.TempDir()); err != nil {
0 commit comments