From f4c61ae8ec08124c46c979aaa1a4441fc4eb108d Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sun, 26 Mar 2023 15:12:32 +0400 Subject: [PATCH] Switch default status_code to OK --- middleware/requestlog/requestlog_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/requestlog/requestlog_test.go b/middleware/requestlog/requestlog_test.go index 6afdbac..18e36d3 100644 --- a/middleware/requestlog/requestlog_test.go +++ b/middleware/requestlog/requestlog_test.go @@ -80,6 +80,6 @@ func TestRequestLog(t *testing.T) { checkEntries("/post", false, http.StatusOK) checkEntries("/forbidden", false, http.StatusForbidden) checkEntries("/slow", false, http.StatusOK) - checkEntries("/forgetful", false, http.StatusInternalServerError) - checkEntries("/buggy", true, http.StatusInternalServerError) + checkEntries("/forgetful", false, http.StatusOK) + checkEntries("/buggy", true, 0) }