Skip to content

Commit 6382e11

Browse files
authored
Merge pull request #279 from Kivenhaoyu/check-test
change QNFileRecorderTest chunckSize
2 parents 097da2f + e021239 commit 6382e11

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

QiniuSDKTests/QNFileRecorderTest.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ - (void) template:(int)size pos:(float)pos {
7979
info = nil;
8080
__block BOOL failed = NO;
8181
opt = [[QNUploadOption alloc] initWithMime:nil progressHandler:^(NSString *key, float percent) {
82-
if (percent < pos - 256.0 / size) {
82+
if (percent < pos - 2 * 1024.0 / size) {
8383
failed = YES;
8484
}
85-
NSLog(@"continue progress %f,%f", percent, pos - 256.0 / size);
85+
NSLog(@"continue progress %f,%f", percent, pos - 2 * 1024.0 / size);
8686
}
8787
params:nil
8888
checkCrc:NO
@@ -113,6 +113,14 @@ - (void)tearDown {
113113
// [self template:700 pos:0.1];
114114
//}
115115

116+
117+
- (void)test4M {
118+
if (_inTravis) {
119+
return;
120+
}
121+
[self template:4 * 1024 + 1 pos:0.9];
122+
}
123+
116124
//#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
117125

118126
//- (void)test1M {

0 commit comments

Comments
 (0)