Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI test. #490

Merged
merged 5 commits into from
Nov 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: CI test.
Ahoo-Wang committed Nov 25, 2023
commit 68194b50c1ef11a55efec20c33bec8c67f4c7289
Original file line number Diff line number Diff line change
@@ -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
@@ -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(
@@ -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();
}

}