diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-16 12:54:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 12:54:50 -0600 |
commit | c4d0fceec37e3842fad4aeb5afb0dfac4353390d (patch) | |
tree | f535c56fd8c122566c091993c1099174fae318e8 /cli/tools/repl/mod.rs | |
parent | 760d64bc6b200ae58e8ee948903bf1e42b6799b5 (diff) |
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.
Diffstat (limited to 'cli/tools/repl/mod.rs')
-rw-r--r-- | cli/tools/repl/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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<i32, AnyError> { .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<i32, AnyError> { resolver, worker, main_module, - test_event_sender, test_event_receiver, ) .await?; |