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