Skip to content

Commit 68194b5

Browse files
committed
fix: CI test.
1 parent 6859f81 commit 68194b5

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

cosid-mongo/src/test/java/me/ahoo/cosid/mongo/MongoMachineIdDistributorTest.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,5 @@ void setup() {
4444
protected MachineIdDistributor getDistributor() {
4545
return machineIdDistributor;
4646
}
47-
48-
@Override
49-
protected Duration getSafeGuardDuration() {
50-
if (System.getenv().containsKey("CI")) {
51-
return Duration.ofSeconds(10);
52-
}
53-
return super.getSafeGuardDuration();
54-
}
47+
5548
}

cosid-mongo/src/test/java/me/ahoo/cosid/mongo/MongoReactiveMachineIdDistributorTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MongoReactiveMachineIdDistributorTest extends MachineIdDistributorSpec {
3333

3434
@BeforeEach
3535
void setup() {
36-
mongoDatabase = MongoClients.create(MongoLauncher.getConnectionString()).getDatabase("cosid_db");
36+
mongoDatabase = MongoClients.create(MongoLauncher.getConnectionString()).getDatabase("cosid_db_reactive");
3737
machineInitializer = new MongoReactiveMachineInitializer(mongoDatabase);
3838
machineInitializer.ensureMachineCollection();
3939
machineIdDistributor = new MongoMachineIdDistributor(
@@ -46,12 +46,5 @@ void setup() {
4646
protected MachineIdDistributor getDistributor() {
4747
return machineIdDistributor;
4848
}
49-
50-
@Override
51-
protected Duration getSafeGuardDuration() {
52-
if (System.getenv().containsKey("CI")) {
53-
return Duration.ofSeconds(10);
54-
}
55-
return super.getSafeGuardDuration();
56-
}
49+
5750
}

0 commit comments

Comments
 (0)