Skip to content

Commit 01a53c3

Browse files
committed
Make CI happy
1 parent fd908a3 commit 01a53c3

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
language: java
22
jdk:
3-
- oraclejdk8
4-
- oraclejdk7
3+
- oraclejdk8

src/test/java/org/codenergic/eventbus/ConnectionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void before() throws InterruptedException {
4141
@Test
4242
public void testOpenAndCloseConnectionAsynchronously() throws Exception {
4343
EventBus eventBus = EventBus.newInstance(connectionAddress);
44-
assertThat(eventBus.open().get(2, TimeUnit.SECONDS)).isEqualTo(eventBus);
44+
assertThat(eventBus.open().get(5, TimeUnit.SECONDS)).isEqualTo(eventBus);
4545
eventBus.close();
4646
}
4747

@@ -54,9 +54,9 @@ public void testOpenAndCloseConnectionSynchronously() throws Exception {
5454
eventBus.onClose((eb) -> connectionOpen.add(false));
5555

5656
assertThat(eventBus.openSync()).isEqualTo(eventBus);
57-
assertThat(connectionOpen.poll(2, TimeUnit.SECONDS)).isNotNull().isTrue();
57+
assertThat(connectionOpen.poll(5, TimeUnit.SECONDS)).isNotNull().isTrue();
5858

5959
eventBus.close();
60-
assertThat(connectionOpen.poll(2, TimeUnit.SECONDS)).isNotNull().isFalse();
60+
assertThat(connectionOpen.poll(5, TimeUnit.SECONDS)).isNotNull().isFalse();
6161
}
6262
}

src/test/java/org/codenergic/eventbus/SendMessageTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void testPublishAndSubscribe() throws InterruptedException {
7272

7373
eventBus.publish("test-address", body, headers);
7474

75-
boolean completed = latch.await(2, TimeUnit.SECONDS);
75+
boolean completed = latch.await(5, TimeUnit.SECONDS);
7676
assertThat(completed).isTrue();
7777

7878
assertThat(messages).hasSize(2);
@@ -99,7 +99,7 @@ public void testSendAndSubscribe() throws InterruptedException {
9999
eventBus.send("test-address", body, headers);
100100
eventBus.send("test-address", body);
101101

102-
boolean completed = latch.await(2, TimeUnit.SECONDS);
102+
boolean completed = latch.await(5, TimeUnit.SECONDS);
103103
assertThat(completed).isTrue();
104104

105105
assertThat(messages).hasSize(2);
@@ -127,7 +127,7 @@ public void testSendMessageWithReply() throws InterruptedException {
127127
});
128128
});
129129

130-
boolean sent = latch.await(2, TimeUnit.SECONDS);
130+
boolean sent = latch.await(5, TimeUnit.SECONDS);
131131
assertThat(sent).isTrue();
132132
assertThat(messages.size()).isEqualTo(messageBodies.size());
133133

@@ -166,7 +166,7 @@ public void testSubscribeAndThrowError() throws InterruptedException {
166166
}));
167167
eventBus.send("test-address", body);
168168

169-
assertThat(latch.await(1, TimeUnit.SECONDS)).isTrue();
169+
assertThat(latch.await(5, TimeUnit.SECONDS)).isTrue();
170170

171171
assertThat(messages).hasSize(2);
172172
messages.forEach(message -> assertThat(message.getBody()).isEqualTo("test-address-" + body));
@@ -187,13 +187,13 @@ public void testSubscribeAndUnsubscribe() throws InterruptedException {
187187
eventBus.registerHandler("test-address-publish-reply", messageHandler);
188188
eventBus.publish("test-address", "testing");
189189

190-
boolean sent = latch.await(1, TimeUnit.SECONDS);
190+
boolean sent = latch.await(5, TimeUnit.SECONDS);
191191
assertThat(sent).isFalse();
192192

193193
eventBus.unregisterHandler("test-address-publish-reply", messageHandler);
194194
eventBus.publish("test-address", "testing");
195195

196-
sent = latch.await(1, TimeUnit.SECONDS);
196+
sent = latch.await(5, TimeUnit.SECONDS);
197197
assertThat(sent).isFalse();
198198

199199
assertThat(messages).hasSize(1);

0 commit comments

Comments
 (0)