Skip to content

Commit 2e6ba31

Browse files
缘潘缘潘
authored andcommitted
fix Travis CI and bugs
1 parent ae6f4f9 commit 2e6ba31

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/test/java/test/com/qiniu/storage/RecordUploadTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,33 @@ public void test600k() throws Throwable {
172172

173173
@Test
174174
public void test4M() throws Throwable {
175+
if (TestConfig.isTravis()) {
176+
return;
177+
}
175178
template(1024 * 4);
176179
}
177180

178181
@Test
179182
public void test4M1K() throws Throwable {
183+
if (TestConfig.isTravis()) {
184+
return;
185+
}
180186
template(1024 * 4 + 1);
181187
}
182188

183189
@Test
184190
public void test8M1k() throws Throwable {
191+
if (TestConfig.isTravis()) {
192+
return;
193+
}
185194
template(1024 * 8 + 1);
186195
}
187196

188197
@Test
189198
public void test25M1k() throws Throwable {
199+
if (TestConfig.isTravis()) {
200+
return;
201+
}
190202
template(1024 * 25 + 1);
191203
}
192204

src/test/java/test/com/qiniu/storage/ResumeUploadTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,25 @@ public void test600k2() throws IOException {
122122

123123
@Test
124124
public void test4M() throws Throwable {
125+
if (TestConfig.isTravis()) {
126+
return;
127+
}
125128
template(1024 * 4, false);
126129
}
127130

128131
@Test
129132
public void test8M1k() throws Throwable {
133+
if (TestConfig.isTravis()) {
134+
return;
135+
}
130136
template(1024 * 8 + 1, false);
131137
}
132138

133139
@Test
134140
public void test8M1k2() throws Throwable {
141+
if (TestConfig.isTravis()) {
142+
return;
143+
}
135144
template(1024 * 8 + 1, true);
136145
}
137146

src/test/java/test/com/qiniu/storage/StreamUploadTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,25 @@ public void test600k2() throws IOException {
119119

120120
@Test
121121
public void test4M() throws Throwable {
122+
if (TestConfig.isTravis()) {
123+
return;
124+
}
122125
template(1024 * 4, false);
123126
}
124127

125128
@Test
126129
public void test8M1k() throws Throwable {
130+
if (TestConfig.isTravis()) {
131+
return;
132+
}
127133
template(1024 * 8 + 1, false);
128134
}
129135

130136
@Test
131137
public void test8M1k2() throws Throwable {
138+
if (TestConfig.isTravis()) {
139+
return;
140+
}
132141
template(1024 * 8 + 1, true);
133142
}
134143

0 commit comments

Comments
 (0)