You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by je...@apache.org on 2018/08/15 12:46:46 UTC
[incubator-dubbo] branch 2.6.x updated: fix ut stable, #2227 (#2302)
This is an automated email from the ASF dual-hosted git repository.
jerrick pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/2.6.x by this push:
new 93d2eb6 fix ut stable, #2227 (#2302)
93d2eb6 is described below
commit 93d2eb674b094ee4feee0ef1e46096098c5a22b4
Author: Jerrick Zhu <di...@gmail.com>
AuthorDate: Wed Aug 15 20:46:38 2018 +0800
fix ut stable, #2227 (#2302)
* fix ut, #2227
* add cache for travis ci
* fix travis problem, skip javadoc
---
.travis.yml | 9 ++++++++-
.../test/java/com/alibaba/dubbo/config/RegistryConfigTest.java | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 529e7ff..d928330 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,8 +6,15 @@ jdk:
- oraclejdk8
- openjdk7
+cache:
+ directories:
+ - '$HOME/.m2/repository'
+
+install:
+ - ./mvnw clean install -DskipTests=true -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true
+
script:
- - travis_wait 30 ./mvnw clean package
+ - travis_wait 30 ./mvnw test
after_success:
- bash <(curl -s https://codecov.io/bash)
diff --git a/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/RegistryConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/RegistryConfigTest.java
index 1d9bbe2..086a4fa 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/RegistryConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/RegistryConfigTest.java
@@ -69,6 +69,7 @@ public class RegistryConfigTest {
registry.setWait(10);
assertThat(registry.getWait(), is(10));
assertThat(System.getProperty(Constants.SHUTDOWN_WAIT_KEY), equalTo("10"));
+ System.clearProperty(Constants.SHUTDOWN_WAIT_KEY);
}
@Test