Skip to content

Commit b33caf4

Browse files
committed
fix: Fix wrong assertion
1 parent 7997357 commit b33caf4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/hivemq-edge-module-opcua/src/test/java/com/hivemq/edge/adapters/opcua/OpcUaProtocolAdapterTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,10 @@ void testCalculateBackoffDelayMs_followsExponentialPattern() {
387387
final long currentDelay =
388388
OpcUaProtocolAdapter.calculateBackoffDelayMs(ConnectionOptions.DEFAULT_RETRY_INTERVALS,
389389
attemptCount);
390-
391390
if (attemptCount > 1) {
392391
assertThat(currentDelay).as("Delay for attempt #%d should be double the previous delay", attemptCount)
393-
.isGreaterThanOrEqualTo(previousDelay * 2)
394-
.isLessThan(getUpperBound(previousDelay * 2));
392+
.isGreaterThan(previousDelay);
395393
}
396-
397394
previousDelay = currentDelay;
398395
}
399396

0 commit comments

Comments
 (0)