diff --git a/internal/server/middleware_test.go b/internal/server/middleware_test.go index e84f14617cb11472f0463e25765b41b873e5b9fb..030d5ea225021692bfed8d2a00481bf5343e377c 100644 --- a/internal/server/middleware_test.go +++ b/internal/server/middleware_test.go @@ -52,8 +52,8 @@ func TestRequestLoggingMiddleware(t *testing.T) { http.Get("http://localhost:8082/api/v1/information/testId") logOutput := buf.String() - assert.Contains(t, logOutput, "received GET request for /api/v1/information/testId with body") - assert.Contains(t, logOutput, "successfully handled GET request for /api/v1/information/testId with body") + assert.Contains(t, "received GET request for /api/v1/information/testId with body", logOutput) + assert.Contains(t,"successfully handled GET request for /api/v1/information/testId with body", logOutput) }) t.Run("should not log request", func(t *testing.T) {