From 96ae107af7f9e6c46e7e334f61d2ca9f9927dd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Del=C3=A8gue?= Date: Fri, 8 Dec 2023 15:31:21 +0100 Subject: [PATCH] Publishing hang --- thoth-jooq-akka/build.gradle | 11 +++-------- thoth-jooq-reactor/build.gradle | 12 +++--------- .../AbstractPostgresEventStoreTest.java | 2 +- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/thoth-jooq-akka/build.gradle b/thoth-jooq-akka/build.gradle index 0bb016cb..ee74971b 100644 --- a/thoth-jooq-akka/build.gradle +++ b/thoth-jooq-akka/build.gradle @@ -16,17 +16,12 @@ dependencies { testImplementation("fr.maif:jooq-async-reactive:$jooqAsyncVersion") testImplementation("org.assertj:assertj-core:3.10.0") testImplementation("org.postgresql:postgresql:42.2.5") - testImplementation("org.junit.platform:junit-platform-launcher:1.4.2") - testImplementation("org.junit.platform:junit-platform-commons:1.4.2") - testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.2") - testImplementation("org.junit.vintage:junit-vintage-engine:5.4.2") testImplementation("net.aichler:jupiter-interface:0.9.1") testImplementation("org.mockito:mockito-all:1.10.19") + testImplementation("org.junit.jupiter:junit-jupiter:5.9.3") + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } test { - useTestNG { - useDefaultListeners = true // Tells TestNG to execute its default reporting structure - suites 'src/test/resources/testng.xml' //location of our suite.xml - } + useJUnitPlatform() } diff --git a/thoth-jooq-reactor/build.gradle b/thoth-jooq-reactor/build.gradle index 03604510..e48cd4d9 100644 --- a/thoth-jooq-reactor/build.gradle +++ b/thoth-jooq-reactor/build.gradle @@ -18,17 +18,11 @@ dependencies { testImplementation("fr.maif:jooq-async-reactive:$jooqAsyncVersion") testImplementation("org.assertj:assertj-core:3.10.0") testImplementation("org.postgresql:postgresql:42.2.5") - testImplementation("org.junit.platform:junit-platform-launcher:1.4.2") - testImplementation("org.junit.platform:junit-platform-commons:1.4.2") - testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.2") - testImplementation("org.junit.vintage:junit-vintage-engine:5.4.2") - testImplementation("net.aichler:jupiter-interface:0.9.1") testImplementation("org.mockito:mockito-all:1.10.19") + testImplementation("org.junit.jupiter:junit-jupiter:5.9.3") + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } test { - useTestNG { - useDefaultListeners = true // Tells TestNG to execute its default reporting structure - suites 'src/test/resources/testng.xml' //location of our suite.xml - } + useJUnitPlatform() } diff --git a/thoth-jooq-reactor/src/test/java/fr/maif/eventsourcing/AbstractPostgresEventStoreTest.java b/thoth-jooq-reactor/src/test/java/fr/maif/eventsourcing/AbstractPostgresEventStoreTest.java index 78f248d0..fb6afd14 100644 --- a/thoth-jooq-reactor/src/test/java/fr/maif/eventsourcing/AbstractPostgresEventStoreTest.java +++ b/thoth-jooq-reactor/src/test/java/fr/maif/eventsourcing/AbstractPostgresEventStoreTest.java @@ -184,7 +184,7 @@ public void lastPublishedSeqNum() { initDatas(); postgresEventStore.markAsPublished(List(event1, event2, event3)).toCompletableFuture().join(); Long lastSeqNum = postgresEventStore.lastPublishedSequence().toCompletableFuture().join(); - assertThat(lastSeqNum).isEqualTo(4L); + assertThat(lastSeqNum).isEqualTo(3L); }