diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/bench/throughput.rs | |
parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/bench/throughput.rs')
-rw-r--r-- | cli/bench/throughput.rs | 10 |
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. |