( t *testing.T, ctx context.Context, cmdOverride ...command.StartMonitor, )
| 366 | } |
| 367 | |
| 368 | func (s *Sensor) SendStartCommandOrFail( |
| 369 | t *testing.T, |
| 370 | ctx context.Context, |
| 371 | cmdOverride ...command.StartMonitor, |
| 372 | ) { |
| 373 | if err := s.SendStartCommand(ctx, cmdOverride...); err != nil { |
| 374 | t.Fatal("Failed sending StartMonitor command:", err) |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | func (s *Sensor) SendStopCommand(ctx context.Context) error { |
| 379 | return s.SendCommand(ctx, &command.StopMonitor{}) |