Skip to content

Commit

Permalink
Serialize more tests sensitive to config changes
Browse files Browse the repository at this point in the history
Signed-off-by: J Robert Ray <jrray@jrray.org>
  • Loading branch information
jrray committed Jun 17, 2024
1 parent 94d05bd commit 11a027e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/spfs/src/sync_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions crates/spfs/src/tracking/manifest_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 11a027e

Please sign in to comment.