Skip to content

Commit cf2a7c7

Browse files
committed
fix test after previous error msg fix
1 parent 0ca1d06 commit cf2a7c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: internal/device-agent/states/connected/connected_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func TestConnected_defaultSyncConfigLoop(t *testing.T) {
347347
assert.ErrorIs(t, err, ErrUnauthenticated)
348348
})
349349

350-
t.Run("err unavailable", func(t *testing.T) {
350+
t.Run("session timeout", func(t *testing.T) {
351351
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
352352
defer cancel()
353353

@@ -362,7 +362,7 @@ func TestConnected_defaultSyncConfigLoop(t *testing.T) {
362362
getDeviceConfigClient.EXPECT().Recv().Return(nil, context.DeadlineExceeded)
363363

364364
err := c.defaultSyncConfigLoop(ctx)
365-
assert.ErrorIs(t, err, ErrUnauthenticated)
365+
assert.ErrorIs(t, err, context.DeadlineExceeded)
366366
})
367367
t.Run("err unauthenticated", func(t *testing.T) {
368368
ctx, cancel := context.WithTimeout(context.Background(), time.Second)

0 commit comments

Comments
 (0)