Skip to content

Commit 93d2eb6

Browse files
authored
fix ut stable, #2227 (#2302)
* fix ut, #2227 * add cache for travis ci * fix travis problem, skip javadoc
1 parent bbfcb41 commit 93d2eb6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ jdk:
66
- oraclejdk8
77
- openjdk7
88

9+
cache:
10+
directories:
11+
- '$HOME/.m2/repository'
12+
13+
install:
14+
- ./mvnw clean install -DskipTests=true -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true
15+
916
script:
10-
- travis_wait 30 ./mvnw clean package
17+
- travis_wait 30 ./mvnw test
1118

1219
after_success:
1320
- bash <(curl -s https://codecov.io/bash)

dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/RegistryConfigTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void testWait() throws Exception {
6969
registry.setWait(10);
7070
assertThat(registry.getWait(), is(10));
7171
assertThat(System.getProperty(Constants.SHUTDOWN_WAIT_KEY), equalTo("10"));
72+
System.clearProperty(Constants.SHUTDOWN_WAIT_KEY);
7273
}
7374

7475
@Test

0 commit comments

Comments
 (0)