File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"time"
11
11
12
12
"github.com/google/uuid"
13
+ "github.com/hashicorp/yamux"
13
14
"github.com/stretchr/testify/assert"
14
15
"github.com/stretchr/testify/require"
15
16
"nhooyr.io/websocket"
@@ -34,8 +35,10 @@ func TestTailnetAPIConnector_Disconnects(t *testing.T) {
34
35
testCtx := testutil .Context (t , testutil .WaitShort )
35
36
ctx , cancel := context .WithCancel (testCtx )
36
37
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
+ ),
39
42
}).Leveled (slog .LevelDebug )
40
43
agentID := uuid.UUID {0x55 }
41
44
clientID := uuid.UUID {0x66 }
You can’t perform that action at this time.
0 commit comments