diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-22 15:10:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 15:10:00 -0400 |
| commit | 6268a1a6fde0980ea5eb86c689a89d2c41aab6d4 (patch) | |
| tree | 2c6267ac87b0cccf3c60197f648f177eeef7f8bb /cli/tests/integration/install_tests.rs | |
| parent | e46b5f738dcb701401d8b6912cce5b937b682fe0 (diff) | |
chore: replace `.expect("...")` calls with `.unwrap()` in test code (#14081)
Diffstat (limited to 'cli/tests/integration/install_tests.rs')
| -rw-r--r-- | cli/tests/integration/install_tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/integration/install_tests.rs b/cli/tests/integration/install_tests.rs index 18f0cf9c0..4ad767607 100644 --- a/cli/tests/integration/install_tests.rs +++ b/cli/tests/integration/install_tests.rs @@ -87,7 +87,7 @@ fn install_custom_dir_env_var() { #[test] fn installer_test_local_module_run() { - let temp_dir = TempDir::new().expect("tempdir fail"); + let temp_dir = TempDir::new().unwrap(); let bin_dir = temp_dir.path().join("bin"); std::fs::create_dir(&bin_dir).unwrap(); let status = util::deno_cmd() @@ -116,7 +116,7 @@ fn installer_test_local_module_run() { .arg("foo") .env("PATH", util::target_dir()) .output() - .expect("failed to spawn script"); + .unwrap(); let stdout_str = std::str::from_utf8(&output.stdout).unwrap().trim(); assert!(stdout_str.ends_with("hello, foo")); } @@ -124,7 +124,7 @@ fn installer_test_local_module_run() { #[test] fn installer_test_remote_module_run() { let _g = util::http_server(); - let temp_dir = TempDir::new().expect("tempdir fail"); + let temp_dir = TempDir::new().unwrap(); let bin_dir = temp_dir.path().join("bin"); std::fs::create_dir(&bin_dir).unwrap(); let status = util::deno_cmd() @@ -151,7 +151,7 @@ fn installer_test_remote_module_run() { .arg("foo") .env("PATH", util::target_dir()) .output() - .expect("failed to spawn script"); + .unwrap(); assert!(std::str::from_utf8(&output.stdout) .unwrap() .trim() |
