Skip to content

Commit

Permalink
Merge branch '2.3.x' into 2.4.x
Browse files Browse the repository at this point in the history
Closes gh-25812
  • Loading branch information
snicoll committed Mar 27, 2021
2 parents 4015d70 + c4b84ae commit d1aaee4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,10 +19,12 @@
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.concurrent.Executor;

import javax.sql.DataSource;

import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.io.TempDir;
Expand Down Expand Up @@ -194,8 +196,8 @@ void withConfiguredJobAndTrigger(CapturedOutput output) {
Scheduler scheduler = context.getBean(Scheduler.class);
assertThat(scheduler.getJobDetail(JobKey.jobKey("fooJob"))).isNotNull();
assertThat(scheduler.getTrigger(TriggerKey.triggerKey("fooTrigger"))).isNotNull();
Thread.sleep(1000L);
assertThat(output).contains("withConfiguredJobAndTrigger").contains("jobDataValue");
Awaitility.waitAtMost(Duration.ofSeconds(5)).untilAsserted(
() -> assertThat(output).contains("withConfiguredJobAndTrigger").contains("jobDataValue"));
});
}

Expand Down

0 comments on commit d1aaee4

Please sign in to comment.