@@ -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 }