1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

Fix flaky test test_permissions_net_listen_allow_localhost (#4271)

This commit is contained in:
Ryan Dahl 2020-03-06 11:40:18 -05:00 committed by GitHub
parent 5e31b96f9a
commit 61f12ea775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1889,8 +1889,9 @@ fn test_permissions_net_listen_allow_localhost_4555_fail() {
#[test]
fn test_permissions_net_listen_allow_localhost() {
// Port 4600 is chosen to not colide with those used by tools/http_server.py
let (_, err, code) = util::run_and_collect_output(
"run --allow-net=localhost complex_permissions_test.ts netListen localhost:4545 localhost:4546 localhost:4547",
"run --allow-net=localhost complex_permissions_test.ts netListen localhost:4600",
None,
None,
false,