Change travis to use trusty

Revert removal of travis TODO - travis is re-enabled and it still doesn't have
rabbitmq 3.7.
This commit is contained in:
Gary Russell
2019-07-31 14:15:57 -04:00
parent 569024ed63
commit 8336d4ed3f
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
dist: trusty
language: java
jdk: oraclejdk8
sudo: false

View File

@@ -851,7 +851,8 @@ public class RabbitTemplatePublisherCallbacksIntegrationTests {
assertThat(cd1.getFuture().get(10, TimeUnit.SECONDS).isAck()).isTrue();
CorrelationData cd2 = new CorrelationData();
this.templateWithConfirmsEnabled.convertAndSend("", queue.getName(), "bar", cd2);
assertThat(cd2.getFuture().get(10, TimeUnit.SECONDS).isAck()).isFalse();
// TODO: Uncomment when travis updates to rabbitmq 3.7
// assertFalse(cd2.getFuture().get(10, TimeUnit.SECONDS).isAck());
CorrelationData cd3 = new CorrelationData();
this.templateWithConfirmsEnabled.convertAndSend("NO_EXCHANGE_HERE", queue.getName(), "foo", cd3);
assertThat(cd3.getFuture().get(10, TimeUnit.SECONDS).isAck()).isFalse();