Skip to content

Commit

Permalink
fix: CI test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Nov 25, 2023
1 parent 6859f81 commit 68194b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,5 @@ void setup() {
protected MachineIdDistributor getDistributor() {
return machineIdDistributor;
}

@Override
protected Duration getSafeGuardDuration() {
if (System.getenv().containsKey("CI")) {
return Duration.ofSeconds(10);
}
return super.getSafeGuardDuration();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MongoReactiveMachineIdDistributorTest extends MachineIdDistributorSpec {

@BeforeEach
void setup() {
mongoDatabase = MongoClients.create(MongoLauncher.getConnectionString()).getDatabase("cosid_db");
mongoDatabase = MongoClients.create(MongoLauncher.getConnectionString()).getDatabase("cosid_db_reactive");
machineInitializer = new MongoReactiveMachineInitializer(mongoDatabase);
machineInitializer.ensureMachineCollection();
machineIdDistributor = new MongoMachineIdDistributor(
Expand All @@ -46,12 +46,5 @@ void setup() {
protected MachineIdDistributor getDistributor() {
return machineIdDistributor;
}

@Override
protected Duration getSafeGuardDuration() {
if (System.getenv().containsKey("CI")) {
return Duration.ofSeconds(10);
}
return super.getSafeGuardDuration();
}

}

0 comments on commit 68194b5

Please sign in to comment.