File tree 1 file changed +2
-2
lines changed
internal/device-agent/states/connected
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ func TestConnected_defaultSyncConfigLoop(t *testing.T) {
347
347
assert .ErrorIs (t , err , ErrUnauthenticated )
348
348
})
349
349
350
- t .Run ("err unavailable " , func (t * testing.T ) {
350
+ t .Run ("session timeout " , func (t * testing.T ) {
351
351
ctx , cancel := context .WithTimeout (context .Background (), time .Second )
352
352
defer cancel ()
353
353
@@ -362,7 +362,7 @@ func TestConnected_defaultSyncConfigLoop(t *testing.T) {
362
362
getDeviceConfigClient .EXPECT ().Recv ().Return (nil , context .DeadlineExceeded )
363
363
364
364
err := c .defaultSyncConfigLoop (ctx )
365
- assert .ErrorIs (t , err , ErrUnauthenticated )
365
+ assert .ErrorIs (t , err , context . DeadlineExceeded )
366
366
})
367
367
t .Run ("err unauthenticated" , func (t * testing.T ) {
368
368
ctx , cancel := context .WithTimeout (context .Background (), time .Second )
You can’t perform that action at this time.
0 commit comments