xonecas.io
60255
Zn

Zoea-Nova / commit 58e344c

test: update stopped state error message expectation

xonecas2026-02-07 58e344cfdc9901fdd427470636a0e00e8ad00597 parent 0ec5cfd

1 file changed

internal/core/long_running_stop_test.go+5−0
@@ -3,6 +3,7 @@ package core
33 import (
44 "fmt"
55 "path/filepath"
6+ "strings"
67 "sync"
78 "testing"
89 "time"
@@ -339,6 +340,10 @@ func TestStopWithQueuedMessages(t *testing.T) {
339340 err := mysis.SendMessage("after-stop", store.MemorySourceDirect)
340341 if err == nil {
341342 t.Error("expected error sending message to stopped mysis")
343+ } else {
344+ if !strings.Contains(err.Error(), "stopped") || !strings.Contains(err.Error(), "relaunch") {
345+ t.Errorf("expected error about stopped state requiring relaunch, got: %v", err)
346+ }
342347 }
343348 }