Skip to content

Commit 6b8100d

Browse files
committed
close order comment, ignore error logs in test
1 parent e454e42 commit 6b8100d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coderd/coderd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,8 @@ func (api *API) Close() error {
15141514
if api.derpCloseFunc != nil {
15151515
api.derpCloseFunc()
15161516
}
1517+
// The coordinator should be closed after the agent provider, and the DERP
1518+
// handler.
15171519
coordinator := api.TailnetCoordinator.Load()
15181520
if coordinator != nil {
15191521
_ = (*coordinator).Close()

enterprise/coderd/coderd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ func TestConn_CoordinatorRollingRestart(t *testing.T) {
733733
dv := coderdtest.DeploymentValues(t, func(dv *codersdk.DeploymentValues) {
734734
dv.DERP.Config.BlockDirect = serpent.Bool(!direct)
735735
})
736-
logger := slogtest.Make(t, nil).Leveled(slog.LevelDebug)
736+
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Leveled(slog.LevelDebug)
737737

738738
// Create two restartable test servers with the same database.
739739
client1, user, s1 := newRestartableTestServer(t, &coderdenttest.Options{

0 commit comments

Comments
 (0)