Skip to content

Commit f0342bf

Browse files
committed
[test] Fix additional_trust_anchors: kill stale https server process
1 parent 8be6bf8 commit f0342bf

File tree

1 file changed

+5
-4
lines changed
  • test/sanity/additional_trust_anchors

1 file changed

+5
-4
lines changed

test/sanity/additional_trust_anchors/test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def write_file(filename, content):
5353
''' % cert
5454
write_file('package.json', pkg_with_trust_anchors)
5555

56-
driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options, service_log_path="log", service_args=["--verbose"])
57-
driver.implicitly_wait(5)
58-
time.sleep(1)
5956
try:
57+
driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options, service_log_path="log", service_args=["--verbose"])
58+
driver.implicitly_wait(5)
59+
time.sleep(1)
6060
try:
6161
print driver.current_url
6262
timeout = 10
@@ -104,4 +104,5 @@ def write_file(filename, content):
104104
driver.quit()
105105

106106
finally:
107-
server.terminate()
107+
print "killing child process", server.pid
108+
server.kill()

0 commit comments

Comments
 (0)