From 73dcfc4caa5056585c8d738a5d76ea410ae6b98b Mon Sep 17 00:00:00 2001 From: Tom Lienard Date: Sat, 16 Nov 2024 09:17:48 +0000 Subject: [PATCH] fix: flaky tests (#102) --- .github/workflows/ci.yml | 2 +- src/install.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f7966f..0174d7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --verbose + args: --verbose -- --test-threads=1 lint: name: Lint diff --git a/src/install.rs b/src/install.rs index 0b4566e..cc4f749 100644 --- a/src/install.rs +++ b/src/install.rs @@ -96,10 +96,7 @@ mod test { assert_eq!(PackageManager::resolve().unwrap(), PackageManager::Yarn); fs::remove_file("yarn.lock").unwrap(); - fs::File::create("pnpm-lock.yaml").unwrap(); assert_eq!(PackageManager::resolve().unwrap(), PackageManager::Pnpm); - - fs::remove_file("pnpm-lock.yaml").unwrap(); } #[test]