From 775cee72dfae41e9d7942b1363fa4dbd7af8b7d7 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 9 Dec 2024 11:03:06 +0100
Subject: [PATCH] fixed test error

---
 internal/server/middleware_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/server/middleware_test.go b/internal/server/middleware_test.go
index e84f146..030d5ea 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) {
-- 
GitLab