You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2021/12/17 01:56:16 UTC
[rocketmq] branch develop updated: [ISSUE #3654] Polish travis.yml to run integration tests (#3655)
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 8cb1468 [ISSUE #3654] Polish travis.yml to run integration tests (#3655)
8cb1468 is described below
commit 8cb14687f3946c95092631d9f9d1447024a741de
Author: rongtong <ji...@163.com>
AuthorDate: Fri Dec 17 09:53:09 2021 +0800
[ISSUE #3654] Polish travis.yml to run integration tests (#3655)
* 1.Make travis to run integration tests
2.Fix running testSynSendNullMessage failed
* Remove run 'mvn clean install -Pit-test' after success
* Change package to install when running UT
---
.travis.yml | 4 ++--
.../test/client/producer/exception/msg/MessageExceptionIT.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index bcf058c..669d9e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,9 +45,9 @@ before_script:
script:
- mvn verify -DskipTests
- travis_retry mvn -B clean apache-rat:check
- - travis_retry mvn -B package jacoco:report coveralls:report
+ - travis_retry mvn -B install jacoco:report coveralls:report
+ - travis_retry mvn -B clean install -pl test -Pit-test
after_success:
- - mvn clean install -Pit-test
- mvn sonar:sonar -Psonar-apache
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
diff --git a/test/src/test/java/org/apache/rocketmq/test/client/producer/exception/msg/MessageExceptionIT.java b/test/src/test/java/org/apache/rocketmq/test/client/producer/exception/msg/MessageExceptionIT.java
index 716ac51..7d96f20 100644
--- a/test/src/test/java/org/apache/rocketmq/test/client/producer/exception/msg/MessageExceptionIT.java
+++ b/test/src/test/java/org/apache/rocketmq/test/client/producer/exception/msg/MessageExceptionIT.java
@@ -59,7 +59,7 @@ public class MessageExceptionIT extends BaseConf {
assertThat(sendResult.getSendStatus()).isEqualTo(SendStatus.SEND_OK);
}
- @Test(expected = org.apache.rocketmq.client.exception.MQClientException.class)
+ @Test(expected = java.lang.NullPointerException.class)
public void testSynSendNullMessage() throws Exception {
producer.send((Message) null);
}