From b21a96b4d22f11d476a6c70f3836e8c8a4731dd3 Mon Sep 17 00:00:00 2001 From: Mattia Panzeri Date: Sun, 16 Jul 2023 14:35:48 +0200 Subject: [PATCH] update tests for HTTP utils --- src/util/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/http_test.go b/src/util/http_test.go index 9e3738c..b83e1bc 100644 --- a/src/util/http_test.go +++ b/src/util/http_test.go @@ -44,7 +44,7 @@ func TestRequestGetRemoteAddress(t *testing.T) { req.RemoteAddr = tt.remoteAddr actual := requestGetRemoteAddress(req) - if actual != tt.expected { + if actual.String() != tt.expected { t.Errorf("requestGetRemoteAddress(%s, %s, %s): expected %s, got %s", tt.headerRealIP, tt.headerForwardedFor, tt.remoteAddr, tt.expected, actual) } }