Skip to content

Commit af71a26

Browse files
committed
[test] unflaky tests which use node http server
1 parent d636bd2 commit af71a26

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/sanity/issue6784-webview/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
port_n = utils.free_port()
1919
port = str(port_n)
20-
server = subprocess.Popen(['python', '../http-server-node.py', port])
2120

2221
tpl = open('index.tpl', 'r')
2322
content = tpl.read().replace('{port}', port)
@@ -35,6 +34,8 @@
3534
html.write(content)
3635
html.close()
3736

37+
server = subprocess.Popen(['python', '../http-server-node.py', port])
38+
3839
if not wait_net_service("127.0.0.1", port_n, 30):
3940
import platform
4041
if platform.system() == 'Windows':

test/sanity/issue7182-cors/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
port_n = utils.free_port()
1919
port = str(port_n)
20-
server = subprocess.Popen(['python', '../http-server-node.py', port])
2120

2221
tpl = open('index.tpl', 'r')
2322
content = tpl.read().replace('{port}', port)
@@ -35,6 +34,8 @@
3534
html.write(content)
3635
html.close()
3736

37+
server = subprocess.Popen(['python', '../http-server-node.py', port])
38+
3839
if not wait_net_service("127.0.0.1", port_n, 30):
3940
import platform
4041
if platform.system() == 'Windows':

0 commit comments

Comments
 (0)