aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/integration/write.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-04-26 00:25:16 +0000
committerSkyler Hawthorne2022-06-19 03:54:03 +0000
commit1533f489340fb63eee31c12122d6233cb5f6abaf (patch)
tree2b31c8ce7295ae45de55663a5fccbe551f9494a8 /helix-term/tests/integration/write.rs
parent2fbf83363028179fe8d3908b5d9911d8595163b1 (diff)
use Results in integration tests for more error context
Diffstat (limited to 'helix-term/tests/integration/write.rs')
-rw-r--r--helix-term/tests/integration/write.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-term/tests/integration/write.rs b/helix-term/tests/integration/write.rs
index 0cc41dbc..4f8f0eb5 100644
--- a/helix-term/tests/integration/write.rs
+++ b/helix-term/tests/integration/write.rs
@@ -11,7 +11,7 @@ use super::*;
#[tokio::test]
async fn test_write() -> anyhow::Result<()> {
- let mut file = tempfile::NamedTempFile::new().unwrap();
+ let mut file = tempfile::NamedTempFile::new()?;
test_key_sequence(
&mut Application::new(
@@ -38,7 +38,7 @@ async fn test_write() -> anyhow::Result<()> {
#[tokio::test]
async fn test_write_concurrent() -> anyhow::Result<()> {
- let mut file = tempfile::NamedTempFile::new().unwrap();
+ let mut file = tempfile::NamedTempFile::new()?;
let mut command = String::new();
const RANGE: RangeInclusive<i32> = 1..=5000;
@@ -112,7 +112,6 @@ async fn test_write_fail_mod_flag() -> anyhow::Result<()> {
}
#[tokio::test]
-#[ignore]
async fn test_write_fail_new_path() -> anyhow::Result<()> {
test_key_sequences(
&mut Application::new(Args::default(), Config::default())?,