@@ -192,8 +192,9 @@ - (void)testSwitchRegionV2 {
192
192
builder.useHttps = YES ;
193
193
}];
194
194
NSArray *sizeArray = @[@1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
195
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
195
196
for (NSNumber *size in sizeArray) {
196
- NSString *key = [NSString stringWithFormat: @" resume_switch_region_v2_%@ k " , size];
197
+ NSString *key = [NSString stringWithFormat: @" resume_switch_region_v2_%@ k_ %d " , size, timestamp ];
197
198
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
198
199
[self allFileTypeSwitchRegionTestWithFile: tempFile key: key config: config option: nil ];
199
200
}
@@ -222,8 +223,9 @@ - (void)testHttpV2 {
222
223
builder.useHttps = NO ;
223
224
}];
224
225
NSArray *sizeArray = @[@500 , @1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
226
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
225
227
for (NSNumber *size in sizeArray) {
226
- NSString *key = [NSString stringWithFormat: @" resume_http_v2_%@ k " , size];
228
+ NSString *key = [NSString stringWithFormat: @" resume_http_v2_%@ k_ %d " , size, timestamp ];
227
229
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
228
230
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: config option: nil ];
229
231
}
@@ -237,8 +239,9 @@ - (void)testHttpsV2 {
237
239
builder.useHttps = YES ;
238
240
}];
239
241
NSArray *sizeArray = @[@500 , @1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
242
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
240
243
for (NSNumber *size in sizeArray) {
241
- NSString *key = [NSString stringWithFormat: @" resume_https_v2_%@ k " , size];
244
+ NSString *key = [NSString stringWithFormat: @" resume_https_v2_%@ k_ %d " , size, timestamp ];
242
245
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
243
246
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: config option: nil ];
244
247
}
@@ -256,8 +259,9 @@ - (void)testReuploadV2 {
256
259
}];
257
260
258
261
NSArray *sizeArray = @[@30000 ];
262
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
259
263
for (NSNumber *size in sizeArray) {
260
- NSString *key = [NSString stringWithFormat: @" resume_reupload_v2_%@ k " , size];
264
+ NSString *key = [NSString stringWithFormat: @" resume_reupload_v2_%@ k_ %d " , size, timestamp ];
261
265
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
262
266
[self allFileTypeResumeUploadTest: 0.5 * 1024 * size.longLongValue tempFile: tempFile key: key config: config option: nil ];
263
267
}
@@ -271,7 +275,8 @@ - (void)testNoKeyV2 {
271
275
builder.useHttps = NO ;
272
276
}];
273
277
274
- NSString *keyUp = [NSString stringWithFormat: @" resume_NoKey_v2_%d k" , 600 ];
278
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
279
+ NSString *keyUp = [NSString stringWithFormat: @" resume_NoKey_v2_%d k_%d " , 600 , timestamp];
275
280
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: 600 * 1024 identifier: keyUp];
276
281
tempFile.canRemove = NO ;
277
282
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: nil config: configHttp option: nil ];
@@ -327,7 +332,8 @@ - (void)testCustomParamV2 {
327
332
builder.useHttps = NO ;
328
333
}];
329
334
330
- NSString *key = @" resume_custom_param_v2" ;
335
+ NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
336
+ NSString *key = [NSString stringWithFormat: @" resume_custom_param_v2_%d " , timestamp];
331
337
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: 1024 * 1024 * 5 identifier: key];
332
338
333
339
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: configHttp option: option];
0 commit comments