Skip to content

Commit

Permalink
Merge branch 'main' into fix/no-connection-serial-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jan 29, 2024
2 parents a72e990 + 9a6a7f4 commit f92ab59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/test/java/io/ably/lib/test/common/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public MessageWaiter(Channel channel, String event) {
*/
public synchronized void waitFor(int count) {
while(receivedMessages.size() < count)
try { wait(); } catch(InterruptedException e) {}
try { wait(); } catch(InterruptedException ignored) {}
}

/**
Expand All @@ -269,7 +269,7 @@ public synchronized void waitFor(int count, long time) {
long targetTime = System.currentTimeMillis() + time;
long remaining = time;
while(receivedMessages.size() < count && remaining > 0) {
try { wait(remaining); } catch(InterruptedException e) {}
try { wait(remaining); } catch(InterruptedException ignored) {}
remaining = targetTime - System.currentTimeMillis();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void simple_delta_codec() {
Message message = messageWaiter.receivedMessages.get(i);
int messageIndex = Integer.parseInt(message.name);
assertEquals("Verify message order", i, messageIndex);
assertEquals("Verify message data", true, testData[messageIndex].equals(message.data));
assertEquals("Verify message data", testData[messageIndex], message.data);
}
} catch(Exception e) {
fail(testName + ": Unexpected exception " + e.getMessage());
Expand Down

0 comments on commit f92ab59

Please sign in to comment.