From c4d0fceec37e3842fad4aeb5afb0dfac4353390d Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 16 Apr 2024 12:54:50 -0600 Subject: fix(cli): TestEventSender should be !Clone (#23405) `TestEventSender` should not be Clone so we don't end up with multiple copies of the same writer FD. This is probably not the cause of the test channel lockups, but it's a lot easier to reason about. --- cli/tools/repl/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cli/tools/repl/mod.rs') diff --git a/cli/tools/repl/mod.rs b/cli/tools/repl/mod.rs index 698abb691..80ab2a2d2 100644 --- a/cli/tools/repl/mod.rs +++ b/cli/tools/repl/mod.rs @@ -172,9 +172,7 @@ pub async fn run(flags: Flags, repl_flags: ReplFlags) -> Result { .create_custom_worker( main_module.clone(), permissions, - vec![crate::ops::testing::deno_test::init_ops( - test_event_sender.clone(), - )], + vec![crate::ops::testing::deno_test::init_ops(test_event_sender)], Default::default(), ) .await?; @@ -186,7 +184,6 @@ pub async fn run(flags: Flags, repl_flags: ReplFlags) -> Result { resolver, worker, main_module, - test_event_sender, test_event_receiver, ) .await?; -- cgit v1.2.3