MCPcopy
hub / github.com/slimtoolkit/slim / SendStartCommandOrFail

Method SendStartCommandOrFail

pkg/test/e2e/sensor/sensor.go:368–376  ·  view source on GitHub ↗
(
	t *testing.T,
	ctx context.Context,
	cmdOverride ...command.StartMonitor,
)

Source from the content-addressed store, hash-verified

366}
367
368func (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
378func (s *Sensor) SendStopCommand(ctx context.Context) error {
379 return s.SendCommand(ctx, &command.StopMonitor{})

Calls 1

SendStartCommandMethod · 0.95