Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ably/ably-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6fb83966802c915a0eeeb6e4802a3b7b96fb7b53
Choose a base ref
..
head repository: ably/ably-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 804175a04748934fc440854b4927be3a0750611b
Choose a head ref
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/src/test/java/io/ably/lib/chat/ChatMessagesTest.java
7 changes: 3 additions & 4 deletions lib/src/test/java/io/ably/lib/chat/ChatMessagesTest.java
Original file line number Diff line number Diff line change
@@ -7,13 +7,12 @@
import io.ably.lib.test.common.ParameterizedTest;
import io.ably.lib.types.ClientOptions;
import io.ably.lib.types.Message;
import org.junit.Assert;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.*;

public class ChatMessagesTest extends ParameterizedTest {
/**
* Connect to the service and attach, then subscribe and unsubscribe
@@ -44,12 +43,12 @@ public void test_room_message_is_published() {
room.sendMessage(params);

Exception err = new Helpers.ConditionalWaiter().wait(() -> !receivedMsg.isEmpty(), 10_000);
assertNull(err);
Assert.assertNull(err);

/* unsubscribe */
} catch (Exception e) {
e.printStackTrace();
fail("init0: Unexpected exception instantiating library");
Assert.fail("init0: Unexpected exception instantiating library");
} finally {
if(ably != null)
ably.close();