Skip to content

Commit

Permalink
Less logging in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Sep 23, 2020
1 parent 44d6c90 commit bfef6a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void testExecuteUntilNoneLeft(int pollingLimit, int threads, int executi
Instant now = Instant.now();
OneTimeTask<Void> task = TestTasks.oneTime("onetime-a", Void.class, TestTasks.DO_NOTHING);
TestableRegistry.Condition condition = TestableRegistry.Conditions.completed(executionsToRun);
TestableRegistry registry = TestableRegistry.create().logEvents().waitConditions(condition).build();
TestableRegistry registry = TestableRegistry.create().waitConditions(condition).build();

Scheduler scheduler = Scheduler.create(postgres.getDataSource(), task)
.pollingLimit(pollingLimit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ExecutionCompletedCondition(int numberCompleted) {
@Override
public void waitFor() {
try {
LoggerFactory.getLogger(ExecutionCompletedCondition.class).info("Starting await for "+numberCompleted+" ExecutionCompleted");
LoggerFactory.getLogger(ExecutionCompletedCondition.class).debug("Starting await for "+numberCompleted+" ExecutionCompleted");
completed.await();
} catch (InterruptedException e) {
throw new RuntimeException(e);
Expand All @@ -36,7 +36,7 @@ public void apply(StatsRegistry.CandidateStatsEvent e) {
@Override
public void apply(StatsRegistry.ExecutionStatsEvent e) {
if (e == StatsRegistry.ExecutionStatsEvent.COMPLETED) {
LoggerFactory.getLogger(ExecutionCompletedCondition.class).info("Received event execution-completed, counting down");
LoggerFactory.getLogger(ExecutionCompletedCondition.class).debug("Received event execution-completed, counting down");
completed.countDown();
}
}
Expand Down

0 comments on commit bfef6a5

Please sign in to comment.