summaryrefslogtreecommitdiff
path: root/cli/bench/throughput.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/throughput.rs')
-rw-r--r--cli/bench/throughput.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/bench/throughput.rs b/cli/bench/throughput.rs
index de18089bb..0420889ef 100644
--- a/cli/bench/throughput.rs
+++ b/cli/bench/throughput.rs
@@ -14,7 +14,7 @@ const CLIENT_ADDR: &str = "127.0.0.1 4544";
pub(crate) fn cat(deno_exe: &Path, megs: usize) -> f64 {
let size = megs * MB;
let shell_cmd = format!(
- "{} run --allow-read cli/tests/cat.ts /dev/zero | head -c {}",
+ "{} run --allow-read cli/tests/testdata/cat.ts /dev/zero | head -c {}",
deno_exe.to_str().unwrap(),
size
);
@@ -47,12 +47,8 @@ pub(crate) fn tcp(deno_exe: &Path, megs: usize) -> Result<f64> {
// Run deno echo server in the background.
let mut echo_server = Command::new(deno_exe.to_str().unwrap())
- .args(&[
- "run",
- "--allow-net",
- "cli/tests/echo_server.ts",
- SERVER_ADDR,
- ])
+ .args(&["run", "--allow-net", "echo_server.ts", SERVER_ADDR])
+ .current_dir(test_util::testdata_path())
.spawn()?;
std::thread::sleep(Duration::from_secs(5)); // wait for deno to wake up. TODO racy.