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

Commit 9555d66

Browse files
committed
ServerIPAddress tests fix
1 parent f0dcf13 commit 9555d66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ class NewHarTest extends MockServerTest {
833833
String capturedUrl = har.log.entries[0].request.url
834834
assertEquals("URL captured in HAR did not match request URL", "https://localhost:2", capturedUrl)
835835

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

838838
HarResponse harResponse = har.log.entries[0].response
839839
assertNotNull("No HAR response found", harResponse)
@@ -887,7 +887,7 @@ class NewHarTest extends MockServerTest {
887887
String capturedUrl = har.log.entries[0].request.url
888888
assertEquals("URL captured in HAR did not match request URL", requestUrl, capturedUrl)
889889

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

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

0 commit comments

Comments
 (0)