- Notifications
You must be signed in to change notification settings - Fork928
Commitda37654
authored
fix: stop waiting for Agent in a goroutine in ssh test (#12268)
Fixes race seen here:https://github.com/coder/coder/runs/21852483781What happens is that the agent connects, completes the test, and then disconnects before the Eventually condition runs. The waiter then times out because it's looking for a connected agent.Then, since it's a `require` in a goroutine, that causes the `tGo` cleanup to hang and the whole test suite to timeout after 10 minutes.Anyway, `agenttest.New` doesn't block, and we don't actually need to wait for the agent to connect, since a successful SSH session is evidence that it connected.1 parenta31a05e commitda37654
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
459 |
| - | |
460 |
| - | |
461 |
| - | |
462 |
| - | |
463 |
| - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
464 | 461 |
| |
465 | 462 |
| |
466 | 463 |
| |
|
0 commit comments
Comments
(0)