diff --git a/shared/testutils/testutils.go b/shared/testutils/testutils.go index 5b3405a..00acf29 100644 --- a/shared/testutils/testutils.go +++ b/shared/testutils/testutils.go @@ -271,6 +271,10 @@ func RunTestServer() func() { go func() { _ = cmd.Wait() }() + expectedSuffix := "Listening on :8080\n" + if !strings.HasSuffix(stdout.String(), expectedSuffix) { + panic(fmt.Errorf("expected server stdout to end with %#v, but it doesn't: %#v", expectedSuffix, stdout.String())) + } return func() { err := cmd.Process.Kill() if err != nil && err.Error() != "os: process already finished" {