We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdd24368 commit1f9bdc3Copy full SHA for 1f9bdc3
codersdk/workspacesdk/connector_internal_test.go
@@ -10,6 +10,7 @@ import (
10
"time"
11
12
"github.com/google/uuid"
13
+"github.com/hashicorp/yamux"
14
"github.com/stretchr/testify/assert"
15
"github.com/stretchr/testify/require"
16
"nhooyr.io/websocket"
@@ -34,8 +35,10 @@ func TestTailnetAPIConnector_Disconnects(t *testing.T) {
34
35
testCtx:=testutil.Context(t,testutil.WaitShort)
36
ctx,cancel:=context.WithCancel(testCtx)
37
logger:=slogtest.Make(t,&slogtest.Options{
-// we get EOF when we simulate a DERPMap error
38
-IgnoredErrorIs:append(slogtest.DefaultIgnoredErrorIs,io.EOF),
+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
+),
42
}).Leveled(slog.LevelDebug)
43
agentID:= uuid.UUID{0x55}
44
clientID:= uuid.UUID{0x66}