We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfbe689 commit b21a96bCopy full SHA for b21a96b
1 file changed
src/util/http_test.go
@@ -44,7 +44,7 @@ func TestRequestGetRemoteAddress(t *testing.T) {
44
req.RemoteAddr = tt.remoteAddr
45
46
actual := requestGetRemoteAddress(req)
47
- if actual != tt.expected {
+ if actual.String() != tt.expected {
48
t.Errorf("requestGetRemoteAddress(%s, %s, %s): expected %s, got %s", tt.headerRealIP, tt.headerForwardedFor, tt.remoteAddr, tt.expected, actual)
49
}
50
0 commit comments