Skip to content

Commit 5bfaba8

Browse files
committed
return args moved to .Run, remove duplicate
1 parent 693162b commit 5bfaba8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/device-agent/state_machine_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ func TestStateMachine(t *testing.T) {
3434
rc.EXPECT().BuildHelperConfiguration(mock.Anything).Return(&pb.Configuration{})
3535

3636
mockGetDeviceConfigclient := pb.NewMockAPIServer_GetDeviceConfigurationClient(t)
37-
recv := mockGetDeviceConfigclient.EXPECT().Recv().After(20*time.Millisecond).Return(
38-
&pb.GetDeviceConfigurationResponse{
39-
Status: pb.DeviceConfigurationStatus_DeviceHealthy,
40-
Gateways: []*pb.Gateway{},
41-
}, nil)
37+
recv := mockGetDeviceConfigclient.EXPECT().Recv().After(20 * time.Millisecond)
4238
var streamContext context.Context
4339
recv.Run(func(args mock.Arguments) {
4440
if streamContext != nil && streamContext.Err() != nil {

0 commit comments

Comments
 (0)