Skip to content

Commit c035595

Browse files
skip snapshot sessions tests on sharded 7.0+
1 parent ef6ce37 commit c035595

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/test/spec/sessions.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,17 @@ use crate::{
3030
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
3131
async fn run_unified() {
3232
let _guard: RwLockWriteGuard<()> = LOCK.run_exclusively().await;
33+
34+
// TODO RUST-1414: unskip this file
35+
let mut skipped_files = vec!["implicit-sessions-default-causal-consistency.json"];
36+
let client = TestClient::new().await;
37+
if client.is_sharded() && client.server_version_gte(7, 0) {
38+
// TODO RUST-1666: unskip this file
39+
skipped_files.push("snapshot-sessions.json");
40+
}
41+
3342
run_unified_tests(&["sessions"])
34-
// TODO RUST-1414: unskip this file
35-
.skip_files(vec!["implicit-sessions-default-causal-consistency.json"])
43+
.skip_files(skipped_files)
3644
.await;
3745
}
3846

0 commit comments

Comments
 (0)