Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 442d007

Browse files
committed
PERL-793 Move test into normal testing dir
1 parent 4df3edc commit 442d007

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

devel/t-dynamic/PERL-793-causal_consistency.t renamed to t/PERL-793-causal_consistency.t

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ use MongoDB;
2828
use MongoDB::Error;
2929

3030
use lib "t/lib";
31-
use lib "devel/lib";
32-
33-
use if $ENV{MONGOVERBOSE}, qw/Log::Any::Adapter Stderr/;
34-
35-
use MongoDBTest::Orchestrator;
3631

3732
use MongoDBTest qw/
3833
build_client
@@ -48,15 +43,6 @@ Role::Tiny->apply_roles_to_package(
4843
'MongoDB::BSON', 'Test::Role::BSONDebug',
4944
);
5045

51-
my $orc =
52-
MongoDBTest::Orchestrator->new(
53-
config_file => "devel/config/replicaset-single-3.6.yml" );
54-
$orc->start;
55-
56-
$ENV{MONGOD} = $orc->as_uri;
57-
58-
print $ENV{MONGOD};
59-
6046
my $conn = build_client();
6147
my $testdb = get_test_db($conn);
6248
my $server_version = server_version($conn);
@@ -66,6 +52,9 @@ my $coll = $testdb->get_collection('test_collection');
6652
plan skip_all => "Requires MongoDB 3.6"
6753
if $server_version < v3.6.0;
6854

55+
plan skip_all => "Causal Consistency unsupported on standalone servers"
56+
if $server_type eq 'Standalone';
57+
6958
Test::Role::BSONDebug::CLEAR_ENCODE_ONE_QUEUE;
7059
Test::Role::BSONDebug::CLEAR_DECODE_ONE_QUEUE;
7160

0 commit comments

Comments
 (0)