Skip to content

Commit

Permalink
return args moved to .Run, remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Jun 5, 2024
1 parent 693162b commit 5bfaba8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/device-agent/state_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ func TestStateMachine(t *testing.T) {
rc.EXPECT().BuildHelperConfiguration(mock.Anything).Return(&pb.Configuration{})

mockGetDeviceConfigclient := pb.NewMockAPIServer_GetDeviceConfigurationClient(t)
recv := mockGetDeviceConfigclient.EXPECT().Recv().After(20*time.Millisecond).Return(
&pb.GetDeviceConfigurationResponse{
Status: pb.DeviceConfigurationStatus_DeviceHealthy,
Gateways: []*pb.Gateway{},
}, nil)
recv := mockGetDeviceConfigclient.EXPECT().Recv().After(20 * time.Millisecond)
var streamContext context.Context
recv.Run(func(args mock.Arguments) {
if streamContext != nil && streamContext.Err() != nil {
Expand Down

0 comments on commit 5bfaba8

Please sign in to comment.