Skip to content

Commit b21a96b

Browse files
committed
update tests for HTTP utils
1 parent bfbe689 commit b21a96b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestRequestGetRemoteAddress(t *testing.T) {
4444
req.RemoteAddr = tt.remoteAddr
4545

4646
actual := requestGetRemoteAddress(req)
47-
if actual != tt.expected {
47+
if actual.String() != tt.expected {
4848
t.Errorf("requestGetRemoteAddress(%s, %s, %s): expected %s, got %s", tt.headerRealIP, tt.headerForwardedFor, tt.remoteAddr, tt.expected, actual)
4949
}
5050
}

0 commit comments

Comments
 (0)