diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index 81e0232268..8d99e40474 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -22,7 +22,8 @@ jobs: java-version: 17 distribution: 'temurin' - name: Run check style - run: ./gradlew --continue clean checkstyleMain checkstyleTest checkstyleIntegration checkstyleJmh -PmaxCheckstyleWarnings=0 + # ignore lengthy console setup tasks + run: ./gradlew --continue clean checkstyleMain checkstyleTest checkstyleIntegration checkstyleJmh -PmaxCheckstyleWarnings=0 -x attachHermesConsole -x prepareIndexTemplate - name: Run reviewdog if: ${{ success() || failure() }} env: diff --git a/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/StatsTest.java b/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/StatsTest.java index 753b974751..871cad479b 100644 --- a/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/StatsTest.java +++ b/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/StatsTest.java @@ -35,9 +35,12 @@ public void shouldGetStats() { TopicWithSchema topic2 = operations.createTopic(topic(group, name(), Topic.Ack.LEADER, ContentType.JSON, false)); operations.createTopic(topic(group, name(), Topic.Ack.ALL, ContentType.JSON, true)); - operations.createSubscription(topic1.getTopic(), subscription(topic1.getName(), name(), ContentType.AVRO, TrackingMode.TRACKING_OFF)); - operations.createSubscription(topic2.getTopic(), subscription(topic2.getName(), name(), ContentType.JSON, TrackingMode.TRACK_ALL)); - operations.createSubscription(topic2.getTopic(), subscription(topic2.getName(), name(), ContentType.AVRO, TrackingMode.TRACKING_OFF)); + operations.createSubscription(topic1.getTopic(), + subscription(topic1.getName(), name(), ContentType.AVRO, TrackingMode.TRACKING_OFF)); + operations.createSubscription(topic2.getTopic(), + subscription(topic2.getName(), name(), ContentType.JSON, TrackingMode.TRACK_ALL)); + operations.createSubscription(topic2.getTopic(), + subscription(topic2.getName(), name(), ContentType.AVRO, TrackingMode.TRACKING_OFF)); // when then Assertions.assertThat(management.statsEndpoint().getStats()).isEqualTo(new Stats(