Commit de30e58
Skip waitDaemonset in E2E mode to prevent race condition
In E2E test mode, the bash script's waitDaemonset() could exit with
error after 10 minutes while the Go test's isDaemonsetReady() was
still polling. This created a race where:
1. Go test calls StartCommand() which runs bash script async
2. Bash script calls waitDaemonset() and waits 10 mins
3. Go test calls isDaemonsetReady() and waits 10 mins
4. If bash times out first, it calls exit 1, killing the process
5. Go test is left polling a dead command
Solution: When isE2E=true, skip the bash-level wait since the Go
test framework handles pod readiness checking via isDaemonsetReady().
For manual CLI usage (isE2E=false), the wait still runs as before
to provide user feedback.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e2dec96 commit de30e58
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
782 | 788 | | |
783 | 789 | | |
784 | 790 | | |
| |||
0 commit comments