- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit33b42fc
authored
test: fix flake in TestAgent_Metrics_SSH (#20450)
Second flake for this test today 😮💨.Flake seen here, though I couldn't replicate this locally, some CIexclusive networking issue.https://github.com/coder/coder/actions/runs/18770305895/job/53553517887?pr=20448``` agent_test.go:3619: Error Trace:/home/runner/work/coder/coder/agent/agent_test.go:3619 Error: Received unexpected error: expected 1, got 0.000000: github.com/coder/coder/v2/agent_test.TestAgent_Metrics_SSH.func7 /home/runner/work/coder/coder/agent/agent_test.go:3557 Test: TestAgent_Metrics_SSH Messages: check fn for coderd_agentstats_currently_reachable_peers failed```This value is incremented by a successful ping to the peer from theagent, which is dependent on all the networking code, which I think isdefinitely out of scope of this test for agent metrics. So, we'll justassert that the metrics exist with the correct labels (`derp`, `p2p`)1 parent86ef3fb commit33b42fc
1 file changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3462 | 3462 | | |
3463 | 3463 | | |
3464 | 3464 | | |
3465 | | - | |
3466 | | - | |
3467 | | - | |
3468 | | - | |
3469 | | - | |
| 3465 | + | |
3470 | 3466 | | |
3471 | 3467 | | |
3472 | 3468 | | |
| |||
3550 | 3546 | | |
3551 | 3547 | | |
3552 | 3548 | | |
3553 | | - | |
3554 | | - | |
3555 | | - | |
3556 | | - | |
3557 | | - | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
3558 | 3554 | | |
3559 | 3555 | | |
3560 | 3556 | | |
| |||
3566 | 3562 | | |
3567 | 3563 | | |
3568 | 3564 | | |
3569 | | - | |
3570 | | - | |
3571 | | - | |
3572 | | - | |
3573 | | - | |
| 3565 | + | |
| 3566 | + | |
3574 | 3567 | | |
3575 | 3568 | | |
3576 | 3569 | | |
| |||
0 commit comments
Comments
(0)