Skip to content

Commit 4687f38

Browse files
authored
ci: make test more lenient to avoid failures (#3924)
In the test `test_commit_conflict_iops` we can sometimes get 4 hops instead of 5. This adjusts the tests expectations for this. Closes #3923
1 parent 72f9a9b commit 4687f38

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rust/lance/src/dataset/write/commit.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,10 @@ mod tests {
684684
} else {
685685
// We need to read the other manifests and transactions.
686686
assert_eq!(io_stats.read_iops, 1 + num_other_txns * 2);
687-
assert_eq!(io_stats.num_hops, 5);
687+
// It's possible to read the txns for some versions before we
688+
// finish reading later versions and so the entire "read versions
689+
// and txs" may appear as 1 hop instead of 2.
690+
assert!(io_stats.num_hops <= 5);
688691
}
689692
assert_eq!(io_stats.write_iops, 2); // txn + manifest
690693
}

0 commit comments

Comments
 (0)