Skip to content

Commit

Permalink
feat: Birth messages now default to Qos 1
Browse files Browse the repository at this point in the history
Signed-off-by: MMaiero <[email protected]>
  • Loading branch information
MMaiero committed Oct 2, 2023
1 parent ef48678 commit 7280e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class CloudServiceOptions {
private static final String ENABLE_DFLT_SUBSCRIPTIONS = "enable.default.subscriptions";
private static final String PAYLOAD_ENCODING = "payload.encoding";

private static final int LIFECYCLE_QOS = 0;
private static final int LIFECYCLE_QOS = 1;
private static final int LIFECYCLE_PRIORITY = 0;
private static final boolean LIFECYCLE_RETAIN = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,12 @@ private void thenNoBirthIsPublished() throws KuraStoreException {
private void thenBirthIsPublishedAfter(long delayMillis, String expectedTopic) throws KuraException {
verify(this.dataService, after(delayMillis).never()).publish(eq(expectedTopic), any(), eq(0), eq(false),
eq(0));
verify(this.dataService, after(delayMillis + SLACK_DELAY).times(1)).publish(eq(expectedTopic), any(), eq(0),
verify(this.dataService, after(delayMillis + SLACK_DELAY).times(1)).publish(eq(expectedTopic), any(), eq(1),
eq(false), eq(0));
}

private void thenBirthIsPublishedImmediately(String expectedTopic) throws KuraException {
verify(this.dataService, timeout(SLACK_DELAY).times(1)).publish(eq(expectedTopic), any(), eq(0), eq(false),
verify(this.dataService, timeout(SLACK_DELAY).times(1)).publish(eq(expectedTopic), any(), eq(1), eq(false),
eq(0));
}

Expand Down

0 comments on commit 7280e98

Please sign in to comment.