Skip to content

Commit ce9730b

Browse files
committed
All tested server versions support transactions
1 parent 9394ebd commit ce9730b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/utils/skipif.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,7 @@ function skip_if_not_replica_set_or_sharded_cluster_with_replica_set()
109109

110110
function skip_if_no_transactions()
111111
{
112-
if (is_sharded_cluster_with_replica_set(URI)) {
113-
skip_if_server_version('<', '4.2');
114-
} elseif (is_replica_set(URI)) {
115-
skip_if_server_version('<', '4.0');
116-
} else {
112+
if (! is_sharded_cluster_with_replica_set(URI) && ! is_replica_set(URI)) {
117113
exit('skip topology does not support transactions');
118114
}
119115
}

0 commit comments

Comments
 (0)