- Notifications
You must be signed in to change notification settings - Fork1k
Commitba7d183
authored
fix: fix flake in TestWorkspaceAgent_Metadata_CatchMemoryLeak (#13553)
Fixes flake seen here:https://github.com/coder/coder/actions/runs/9461246505/job/26061605278#13486 subtly changes the test so that `post` uses the new v2 Agent API, and when canceling context, there is a race condition where the yamux session underpinning the API can get torn down before the RPC processes the canceled context, yielding a different error response than the test was previously expecting.I've refactored the test to just stop posting when the test finishes, rather than depend on a context cancel to end the posting goroutine.1 parent0c627a4 commitba7d183
1 file changed
+11
-15
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 |
| - | |
| 1353 | + | |
1354 | 1354 |
| |
1355 | 1355 |
| |
1356 | 1356 |
| |
| |||
1404 | 1404 |
| |
1405 | 1405 |
| |
1406 | 1406 |
| |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1407 | 1412 |
| |
1408 | 1413 |
| |
1409 |
| - | |
| 1414 | + | |
1410 | 1415 |
| |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
| 1416 | + | |
1414 | 1417 |
| |
1415 | 1418 |
| |
1416 | 1419 |
| |
1417 | 1420 |
| |
1418 |
| - | |
1419 |
| - | |
1420 |
| - | |
| 1421 | + | |
1421 | 1422 |
| |
1422 | 1423 |
| |
1423 | 1424 |
| |
| |||
1436 | 1437 |
| |
1437 | 1438 |
| |
1438 | 1439 |
| |
1439 |
| - | |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 |
| - | |
1445 |
| - | |
| 1440 | + | |
| 1441 | + | |
1446 | 1442 |
| |
1447 | 1443 |
| |
1448 | 1444 |
| |
|
0 commit comments
Comments
(0)