Skip to content

Commit c02b100

Browse files
committed
fix: ignore yamux.ErrSessionShutdown on TestTailnetAPIConnector_Disconnects
1 parent dd24368 commit c02b100

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codersdk/workspacesdk/connector_internal_test.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"testing"
1010
"time"
1111

12+
"github.com/hashicorp/yamux"
13+
1214
"github.com/google/uuid"
1315
"github.com/stretchr/testify/assert"
1416
"github.com/stretchr/testify/require"
@@ -34,8 +36,10 @@ func TestTailnetAPIConnector_Disconnects(t *testing.T) {
3436
testCtx := testutil.Context(t, testutil.WaitShort)
3537
ctx, cancel := context.WithCancel(testCtx)
3638
logger := slogtest.Make(t, &slogtest.Options{
37-
// we get EOF when we simulate a DERPMap error
38-
IgnoredErrorIs: append(slogtest.DefaultIgnoredErrorIs, io.EOF),
39+
IgnoredErrorIs: append(slogtest.DefaultIgnoredErrorIs,
40+
io.EOF, // we get EOF when we simulate a DERPMap error
41+
yamux.ErrSessionShutdown, // coordination can throw these when DERP error tears down session
42+
),
3943
}).Leveled(slog.LevelDebug)
4044
agentID := uuid.UUID{0x55}
4145
clientID := uuid.UUID{0x66}

0 commit comments

Comments
 (0)