We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693162b commit 5bfaba8Copy full SHA for 5bfaba8
internal/device-agent/state_machine_test.go
@@ -34,11 +34,7 @@ func TestStateMachine(t *testing.T) {
34
rc.EXPECT().BuildHelperConfiguration(mock.Anything).Return(&pb.Configuration{})
35
36
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)
+ recv := mockGetDeviceConfigclient.EXPECT().Recv().After(20 * time.Millisecond)
42
var streamContext context.Context
43
recv.Run(func(args mock.Arguments) {
44
if streamContext != nil && streamContext.Err() != nil {
0 commit comments