Skip to content

Commit 1f9bdc3

Browse files
authored
fix: ignore yamux.ErrSessionShutdown on TestTailnetAPIConnector_Disconnects (coder#13532)
1 parent dd24368 commit 1f9bdc3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codersdk/workspacesdk/connector_internal_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/google/uuid"
13+
"github.com/hashicorp/yamux"
1314
"github.com/stretchr/testify/assert"
1415
"github.com/stretchr/testify/require"
1516
"nhooyr.io/websocket"
@@ -34,8 +35,10 @@ func TestTailnetAPIConnector_Disconnects(t *testing.T) {
3435
testCtx := testutil.Context(t, testutil.WaitShort)
3536
ctx, cancel := context.WithCancel(testCtx)
3637
logger := slogtest.Make(t, &slogtest.Options{
37-
// we get EOF when we simulate a DERPMap error
38-
IgnoredErrorIs: append(slogtest.DefaultIgnoredErrorIs, io.EOF),
38+
IgnoredErrorIs: append(slogtest.DefaultIgnoredErrorIs,
39+
io.EOF, // we get EOF when we simulate a DERPMap error
40+
yamux.ErrSessionShutdown, // coordination can throw these when DERP error tears down session
41+
),
3942
}).Leveled(slog.LevelDebug)
4043
agentID := uuid.UUID{0x55}
4144
clientID := uuid.UUID{0x66}

0 commit comments

Comments
 (0)