Skip to content

Commit

Permalink
TestCI bugfix investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel committed Dec 15, 2023
1 parent 06d6119 commit 620d02c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/temp_maven_build_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow is copied from maven_build.yml and is temporarily used to throubleshoot failure that appears only in CI

name: Java CI with Maven

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
name: Temp test of CI
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
architecture: x64
- name: Test with Maven
run: ./mvnw -Dtest=SharedSubscriptionTest test -pl broker --file pom.xml

Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ private static void verifyPubPayload(MqttMessage received, String expectedPayloa
MqttPublishMessage pub = (MqttPublishMessage) received;
String payload = pub.payload().asByteBuf().toString(StandardCharsets.UTF_8);
assertEquals(expectedPayload, payload);
assertTrue(pub.release(), "received message must be deallocated");
}

@NotNull
Expand Down

0 comments on commit 620d02c

Please sign in to comment.