Skip to content

Commit 1cbe59b

Browse files
committed
fix
1 parent 5290571 commit 1cbe59b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/prometheusmetrics/prometheusmetrics_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,10 @@ func TestAgents(t *testing.T) {
307307

308308
// when
309309
closeFunc, err := prometheusmetrics.Agents(context.Background(), slogtest.Make(t, nil), registry, db, &coordinatorPtr, derpMap, agentInactiveDisconnectTimeout, time.Millisecond)
310+
require.NoError(t, err)
310311
t.Cleanup(closeFunc)
311312

312313
// then
313-
require.NoError(t, err)
314-
315314
var agentsUp bool
316315
var agentsConnections bool
317316
var agentsApps bool

0 commit comments

Comments
 (0)