Skip to content

Commit 68214e4

Browse files
authored
Testing Routing failure on browser testkit (#1224)
Browser version of testkit was running firefox with a DNS cache, which was liable to cause failures of mixing up the cores, as they do not always keep their IP addresses
1 parent 5f5cd5c commit 68214e4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ coverage
1919
*.code-workspace
2020
/testkit/CAs
2121
/testkit/CustomCAs
22+
/testkit/firefox_profile/*

testkit/backend.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import os
1313
import time
1414

15+
1516
if __name__ == "__main__":
1617
print("starting backend")
1718
backend_script = "start-testkit-backend"
@@ -34,7 +35,7 @@
3435
time.sleep(5)
3536
print("openning firefox")
3637
with open_proccess_in_driver_repo([
37-
"firefox", "-headless", "http://localhost:8000"
38+
"firefox", "--profile", "./testkit/firefox_profile", "--headless", "http://localhost:8000" # type: ignore
3839
]) as firefox:
3940
firefox.wait()
4041
backend.wait()

testkit/firefox_profile/prefs.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* global user_pref */
2+
user_pref('network.dnsCacheExpiration', 0);
3+
user_pref('network.dnsCacheExpirationGracePeriod', 0);

0 commit comments

Comments
 (0)