Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc02b100

Browse files
committed
fix: ignore yamux.ErrSessionShutdown on TestTailnetAPIConnector_Disconnects
1 parentdd24368 commitc02b100

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎codersdk/workspacesdk/connector_internal_test.go

Lines changed: 6 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp