Skip to content

Commit f81c207

Browse files
committed
hrmm tests failing in CI kinda cringe
1 parent 7626af2 commit f81c207

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl SimpleOutput {
9090
}
9191

9292
pub fn success(&self) -> bool {
93-
self.status != 0
93+
self.status == 0
9494
}
9595
}
9696

src/runner.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async fn wait_with_output_and_timeout(
201201
};
202202

203203
let ((), stdout, stderr, (timed_out, exit_status)) =
204-
try_join!(stdin_fut, stdout_fut, stderr_fut, wait_fut)?;
204+
dbg!(try_join!(stdin_fut, stdout_fut, stderr_fut, wait_fut))?;
205205

206206
Ok((SimpleOutput::new(stdout, stderr, exit_status), timed_out))
207207
}
@@ -584,6 +584,12 @@ impl<T: 'static> TestHandle<T> {
584584
}
585585

586586
pub async fn wait_all(&mut self) -> Result<Vec<TestResult<T>>, SpawnTestError> {
587+
let path = self._tmpdir.as_ref().unwrap();
588+
let mut x = tokio::fs::read_dir(path).await.unwrap();
589+
while let Some(e) = x.next_entry().await.unwrap() {
590+
dbg!(e.path());
591+
}
592+
587593
let len = self.len();
588594
let mut out = Vec::with_capacity(len);
589595
let out_slice = out.spare_capacity_mut();

0 commit comments

Comments
 (0)