diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5f8a9c9..22cd25c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -36,7 +36,7 @@ jobs: ${{ runner.os }}-lfs- - name: ls checkout - run: ls tests + run: ls tests/test-data - uses: dtolnay/rust-toolchain@stable with: diff --git a/tests/test-data-setup/src/main.rs b/tests/test-data-setup/src/main.rs index de3670a..8ee2e5e 100644 --- a/tests/test-data-setup/src/main.rs +++ b/tests/test-data-setup/src/main.rs @@ -3,9 +3,7 @@ use std::{env, path::Path}; fn main() { if Path::new("tests/real_virtuality/test-data") .read_dir() - .expect("read_dir failed") - .next() - .is_some() + .is_ok_and(|mut rd| rd.next().is_some()) { return; }