Skip to content

Commit b90035f

Browse files
RongtongJin上河
authored andcommitted
[ISSUE apache#3654] Polish travis.yml to run integration tests (apache#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
1 parent 7f99d15 commit b90035f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ before_script:
4747
script:
4848
- mvn verify -DskipTests
4949
- travis_retry mvn -B clean apache-rat:check
50-
- travis_retry mvn -B package jacoco:report coveralls:report
50+
- travis_retry mvn -B install jacoco:report coveralls:report
51+
- travis_retry mvn -B clean install -pl test -Pit-test
5152

5253
after_success:
53-
- mvn clean install -Pit-test
5454
- mvn sonar:sonar -Psonar-apache
5555
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'

test/src/test/java/org/apache/rocketmq/test/client/producer/exception/msg/MessageExceptionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void testProducerSmoke() {
5959
assertThat(sendResult.getSendStatus()).isEqualTo(SendStatus.SEND_OK);
6060
}
6161

62-
@Test(expected = org.apache.rocketmq.client.exception.MQClientException.class)
62+
@Test(expected = java.lang.NullPointerException.class)
6363
public void testSynSendNullMessage() throws Exception {
6464
producer.send((Message) null);
6565
}

0 commit comments

Comments
 (0)