Skip to content

Commit 2e3990c

Browse files
committed
Run test in method order to fix issue with unstable test
1 parent f828fbe commit 2e3990c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/apache/ibatis/submitted/cursor_simple/CursorSimpleTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
3232
import org.junit.jupiter.api.Assertions;
3333
import org.junit.jupiter.api.BeforeAll;
34-
import org.junit.jupiter.api.Disabled;
34+
import org.junit.jupiter.api.MethodOrderer;
3535
import org.junit.jupiter.api.Test;
36+
import org.junit.jupiter.api.TestMethodOrder;
3637

38+
@TestMethodOrder(MethodOrderer.MethodName.class)
3739
class CursorSimpleTest {
3840

3941
private static SqlSessionFactory sqlSessionFactory;
@@ -130,8 +132,6 @@ void cursorClosedOnSessionClose() {
130132
Assertions.assertFalse(usersCursor.isConsumed());
131133
}
132134

133-
// TODO 12/28/2024 JWL Unstable test
134-
@Disabled
135135
@Test
136136
void cursorWithRowBound() {
137137
try (SqlSession sqlSession = sqlSessionFactory.openSession()) {

0 commit comments

Comments
 (0)