diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-10 11:09:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 11:09:45 -0400 |
commit | 7f15126f23d97f20a4fb33e43136cd4d13825863 (patch) | |
tree | 85d77389969b31999680059e65954a9fa863758e /cli/bench/websocket.rs | |
parent | f3326eebd6af2aaca1543e8cb543a7b16762bc96 (diff) |
chore(tests): test_util - Add `PathRef` (#19450)
This adds a new `PathRef` struct to test_util for making it easier to
work with paths in test code. I'm going to expand on this more in the
future.
Diffstat (limited to 'cli/bench/websocket.rs')
-rw-r--r-- | cli/bench/websocket.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/bench/websocket.rs b/cli/bench/websocket.rs index 84a799660..0296d4ce8 100644 --- a/cli/bench/websocket.rs +++ b/cli/bench/websocket.rs @@ -10,7 +10,6 @@ use super::Result; pub fn benchmark() -> Result<HashMap<String, f64>> { let deno_exe = test_util::deno_exe_path(); - let deno_exe = deno_exe.to_str().unwrap(); let mut res = HashMap::new(); let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR")); @@ -22,7 +21,7 @@ pub fn benchmark() -> Result<HashMap<String, f64>> { let path = pathbuf.to_str().unwrap(); let file_stem = pathbuf.file_stem().unwrap().to_str().unwrap(); - let mut cmd = Command::new(deno_exe); + let mut cmd = Command::new(&deno_exe); let mut server = cmd .arg("run") .arg("-A") |