( t *testing.T, ctx context.Context, runArgs []string, cmdOverride ...command.StartMonitor, )
| 323 | } |
| 324 | |
| 325 | func (s *Sensor) StartStandaloneOrFail( |
| 326 | t *testing.T, |
| 327 | ctx context.Context, |
| 328 | runArgs []string, |
| 329 | cmdOverride ...command.StartMonitor, |
| 330 | ) { |
| 331 | if err := s.StartStandalone(ctx, runArgs, cmdOverride...); err != nil { |
| 332 | t.Fatal("Cannot start sensor (standalone mode):", err) |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | func (s *Sensor) SendCommand(ctx context.Context, cmd command.Message) error { |
| 337 | msg, err := command.Encode(cmd) |