Skip to content

Commit

Permalink
update tests for HTTP utils
Browse files Browse the repository at this point in the history
  • Loading branch information
panz3r committed Jul 16, 2023
1 parent bfbe689 commit b21a96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit b21a96b

Please sign in to comment.