Skip to content

Commit cbe0ac0

Browse files
committed
Corrected timeout values in tests
The values were changed during the transition from JUnit 4 to 5. 94aad3f
1 parent 29144f3 commit cbe0ac0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/org/apache/ibatis/parsing/GenericTokenParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void shallNotInterpolateSkippedVaiables() {
8989
@Disabled("Because it randomly fails on Travis CI. It could be useful during development.")
9090
@Test
9191
void shouldParseFastOnJdk7u6() {
92-
Assertions.assertTimeout(Duration.ofMillis(1), () -> {
92+
Assertions.assertTimeout(Duration.ofMillis(1000), () -> {
9393
// issue #760
9494
GenericTokenParser parser = new GenericTokenParser("${", "}", new VariableTokenHandler(new HashMap<String, String>() {
9595
{

src/test/java/org/apache/ibatis/submitted/multiple_discriminator/MultipleDiscriminatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void testMultipleDiscriminator2() {
6161
}
6262
@Test
6363
void testMultipleDiscriminatorLoop() {
64-
Assertions.assertTimeout(Duration.ofMillis(20), () -> {
64+
Assertions.assertTimeout(Duration.ofMillis(20000), () -> {
6565
try (SqlSession sqlSession = sqlSessionFactory.openSession()) {
6666
PersonMapper personMapper = sqlSession.getMapper(PersonMapper.class);
6767
personMapper.getLoop();

0 commit comments

Comments
 (0)