Commit 02a5cb6 1 parent 27285c3 commit 02a5cb6 Copy full SHA for 02a5cb6
File tree 2 files changed +5
-3
lines changed
main/resources/db/migration
test/java/io/quarkus/qe/quartz
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- CREATE SEQUENCE hibernate_sequence START with 1 increment by 1 ;
1
+ CREATE SEQUENCE ExecutionEntity_SEQ START with 1 increment by 50 ;
2
2
3
3
CREATE TABLE ExecutionEntity
4
4
(
5
5
id BIGINT PRIMARY KEY ,
6
6
seconds BIGINT NOT NULL ,
7
7
owner VARCHAR (100 ) NOT NULL
8
- );
8
+ );
Original file line number Diff line number Diff line change 2
2
3
3
import static io .restassured .RestAssured .get ;
4
4
import static org .junit .jupiter .api .Assertions .assertFalse ;
5
+ import static org .junit .jupiter .api .Assertions .assertNotEquals ;
5
6
import static org .junit .jupiter .api .Assertions .assertTrue ;
6
7
7
8
import java .time .Duration ;
@@ -42,7 +43,7 @@ public static void beforeAll() {
42
43
}
43
44
44
45
@ Test
45
- public void testClusteringEnvironmentWithUniqueJobs () throws Exception {
46
+ public void testClusteringEnvironmentWithUniqueJobs () {
46
47
whenBothNodesAreUpAndRunning ();
47
48
thenJobIsExecutedWithOwner (NODE_ONE_NAME , NODE_TWO_NAME );
48
49
@@ -80,6 +81,7 @@ private void thenJobIsExecutedWithOwner(String... possibleOwners) {
80
81
final ExecutionEntity [] executions = get ("/executions" )
81
82
.then ().statusCode (200 )
82
83
.extract ().as (ExecutionEntity [].class );
84
+ assertNotEquals (0 , executions .length );
83
85
final String lastOwner = executions [executions .length - 1 ].owner ;
84
86
final List <String > possibleOwnersList = Arrays .asList (possibleOwners );
85
87
assertTrue (possibleOwnersList .contains (lastOwner ),
You can’t perform that action at this time.
0 commit comments