Skip to content

Commit 02a5cb6

Browse files
committed
Fix tests failing due to update to Hibernate 6
1 parent 27285c3 commit 02a5cb6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CREATE SEQUENCE hibernate_sequence START with 1 increment by 1;
1+
CREATE SEQUENCE ExecutionEntity_SEQ START with 1 increment by 50;
22

33
CREATE TABLE ExecutionEntity
44
(
55
id BIGINT PRIMARY KEY,
66
seconds BIGINT NOT NULL,
77
owner VARCHAR(100) NOT NULL
8-
);
8+
);

017-quartz-cluster/src/test/java/io/quarkus/qe/quartz/AnnotationScheduledJobsQuartzTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static io.restassured.RestAssured.get;
44
import static org.junit.jupiter.api.Assertions.assertFalse;
5+
import static org.junit.jupiter.api.Assertions.assertNotEquals;
56
import static org.junit.jupiter.api.Assertions.assertTrue;
67

78
import java.time.Duration;
@@ -42,7 +43,7 @@ public static void beforeAll() {
4243
}
4344

4445
@Test
45-
public void testClusteringEnvironmentWithUniqueJobs() throws Exception {
46+
public void testClusteringEnvironmentWithUniqueJobs() {
4647
whenBothNodesAreUpAndRunning();
4748
thenJobIsExecutedWithOwner(NODE_ONE_NAME, NODE_TWO_NAME);
4849

@@ -80,6 +81,7 @@ private void thenJobIsExecutedWithOwner(String... possibleOwners) {
8081
final ExecutionEntity[] executions = get("/executions")
8182
.then().statusCode(200)
8283
.extract().as(ExecutionEntity[].class);
84+
assertNotEquals(0, executions.length);
8385
final String lastOwner = executions[executions.length - 1].owner;
8486
final List<String> possibleOwnersList = Arrays.asList(possibleOwners);
8587
assertTrue(possibleOwnersList.contains(lastOwner),

0 commit comments

Comments
 (0)