Commit 553e707
Use --background mode in privilege tests to prevent early cleanup
Tests were failing because:
1. Commands ran with --max-time=1m in foreground mode
2. After 1 minute, capture finished and auto-cleanup ran
3. Cleanup deleted the daemonset
4. isDaemonsetReady() was polling for a deleted daemonset
5. Test failed with context deadline exceeded
Using --background mode prevents automatic cleanup when the
capture finishes, allowing the test to verify daemonset
privilege settings before cleanup runs.
Also, Check for CLI is running instead of just daemnset.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent de30e58 commit 553e707
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
| 288 | + | |
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
| |||
0 commit comments