Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 5e7b049

Browse files
committed
ServerIPAddress test fix
1 parent 9555d66 commit 5e7b049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browserup-proxy-core/src/test/groovy/com/browserup/bup/mitmproxy/NewHarTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ class NewHarTest extends MockServerTest {
785785
String capturedUrl = har.log.entries[0].request.url
786786
assertEquals("URL captured in HAR did not match request URL", requestUrl, capturedUrl)
787787

788-
assertEquals("Expected IP address to be populated", "127.0.0.1", har.log.entries[0].serverIPAddress)
788+
assertTrue("Expected IP address to be populated", har.log.entries[0].serverIPAddress in ["127.0.0.1", "::1"] )
789789

790790
HarResponse harResponse = har.log.entries[0].response
791791
assertNotNull("No HAR response found", harResponse)

0 commit comments

Comments
 (0)