Skip to content

Commit

Permalink
tuning flacky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Aug 26, 2024
1 parent 87c8f5b commit 54d2b79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public void disablePullReplicationOnSink() throws Exception {
try (DocumentStore sink = getDocumentStore()) {
try (DocumentStore hub = getDocumentStore()) {
String definitionName = "pull-replication " + hub.getDatabase();
int timeout = 3_000;
int timeout = 15_000;

hub.maintenance().forDatabase(hub.getDatabase())
.send(new PutPullReplicationAsHubOperation(definitionName));
Expand All @@ -286,7 +286,7 @@ public void disablePullReplicationOnSink() throws Exception {
main.saveChanges();
}

assertThat(waitForDocumentToReplicate(sink, User.class, "hub/2", timeout))
assertThat(waitForDocumentToReplicate(sink, User.class, "hub/2", timeout / 3))
.isNull();

pull.setDisabled(false);
Expand Down

0 comments on commit 54d2b79

Please sign in to comment.