From 11a027e971156446bebdc40722be6367641add09 Mon Sep 17 00:00:00 2001 From: J Robert Ray Date: Mon, 17 Jun 2024 16:14:12 -0700 Subject: [PATCH] Serialize more tests sensitive to config changes Signed-off-by: J Robert Ray --- crates/spfs/src/sync_test.rs | 2 ++ crates/spfs/src/tracking/manifest_test.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/spfs/src/sync_test.rs b/crates/spfs/src/sync_test.rs index b6455924b..719f95784 100644 --- a/crates/spfs/src/sync_test.rs +++ b/crates/spfs/src/sync_test.rs @@ -207,6 +207,8 @@ async fn test_sync_missing_from_source( #[case::tar(tmprepo("tar"), tmprepo("tar"))] #[cfg_attr(feature = "server", case::rpc(tmprepo("rpc"), tmprepo("rpc")))] #[tokio::test] +// This test just needs the config to not change while it is running. +#[serial_test::serial(config)] async fn test_sync_through_tar( #[case] #[future] diff --git a/crates/spfs/src/tracking/manifest_test.rs b/crates/spfs/src/tracking/manifest_test.rs index 38cda506b..301268d90 100644 --- a/crates/spfs/src/tracking/manifest_test.rs +++ b/crates/spfs/src/tracking/manifest_test.rs @@ -80,6 +80,8 @@ async fn test_manifest_sorting(tmpdir: tempfile::TempDir) { } #[rstest] #[tokio::test] +// This test just needs the config to not change while it is running. +#[serial_test::serial(config)] async fn test_layer_manifests(tmpdir: tempfile::TempDir) { let a_dir = tmpdir.path().join("a"); ensure(a_dir.join("a.txt"), "a");