From fb5c31416d4b9e526ca0fcc134dc8f366e367012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Souto?= Date: Wed, 11 Mar 2020 22:19:24 +0000 Subject: Add waker to StreamResource to fix hang on close bugs (#4293) --- cli/tests/integration_tests.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index d5a3fb8c8..ce08c6b61 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1785,7 +1785,8 @@ fn test_permissions_net_fetch_allow_localhost_4545() { true, "run --allow-net=localhost:4545 complex_permissions_test.ts netFetch http://localhost:4545/", None, - None,true, + None, + true, ); assert!(!err.contains(util::PERMISSION_DENIED_PATTERN)); } @@ -1918,7 +1919,7 @@ fn test_permissions_net_listen_allow_localhost() { "run --allow-net=localhost complex_permissions_test.ts netListen localhost:4600", None, None, - false, + false, ); assert!(!err.contains(util::PERMISSION_DENIED_PATTERN)); } @@ -1932,6 +1933,7 @@ mod util { use std::process::Command; use std::process::Output; use std::process::Stdio; + use tempfile::TempDir; pub const PERMISSION_VARIANTS: [&str; 5] = -- cgit v1.2.3