From 083569be17004c3406966a69c8f1bc331859942a Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 22 Oct 2023 11:07:59 -0700 Subject: [PATCH] Move output prefix from 60d388c4c2f9305bc939992f2fad1bed59c719de to the inner test --- backend/server/internal/server/middleware_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/internal/server/middleware_test.go b/backend/server/internal/server/middleware_test.go index 27553c2..7029da4 100644 --- a/backend/server/internal/server/middleware_test.go +++ b/backend/server/internal/server/middleware_test.go @@ -138,7 +138,6 @@ func TestPanicGuardNoPanic(t *testing.T) { } func TestMergeMiddlewares(t *testing.T) { - fmt.Println("Output prefix to avoid breaking gotestsum with panics") handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) w.Write([]byte("test")) @@ -175,6 +174,7 @@ func TestMergeMiddlewares(t *testing.T) { for _, test := range tests { t.Run(test.name, func(t *testing.T) { + fmt.Println("Output prefix to avoid breaking gotestsum with panics") var out strings.Builder middlewares := mergeMiddlewares( withPanicGuard(nil),