@@ -194,7 +194,7 @@ - (void)testSwitchRegionV2 {
194
194
NSArray *sizeArray = @[@1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
195
195
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
196
196
for (NSNumber *size in sizeArray) {
197
- NSString *key = [NSString stringWithFormat: @" resume_switch_region_v2_%@ k_%d " , size, timestamp];
197
+ NSString *key = [NSString stringWithFormat: @" resume_switch_region_v2_%@ k_%ld " , size, ( long ) timestamp];
198
198
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
199
199
[self allFileTypeSwitchRegionTestWithFile: tempFile key: key config: config option: nil ];
200
200
}
@@ -225,7 +225,7 @@ - (void)testHttpV2 {
225
225
NSArray *sizeArray = @[@500 , @1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
226
226
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
227
227
for (NSNumber *size in sizeArray) {
228
- NSString *key = [NSString stringWithFormat: @" resume_http_v2_%@ k_%d " , size, timestamp];
228
+ NSString *key = [NSString stringWithFormat: @" resume_http_v2_%@ k_%ld " , size, ( long ) timestamp];
229
229
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
230
230
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: config option: nil ];
231
231
}
@@ -241,7 +241,7 @@ - (void)testHttpsV2 {
241
241
NSArray *sizeArray = @[@500 , @1000 , @3000 , @4000 , @5000 , @8000 , @10000 , @20000 ];
242
242
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
243
243
for (NSNumber *size in sizeArray) {
244
- NSString *key = [NSString stringWithFormat: @" resume_https_v2_%@ k_%d " , size, timestamp];
244
+ NSString *key = [NSString stringWithFormat: @" resume_https_v2_%@ k_%ld " , size, ( long ) timestamp];
245
245
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
246
246
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: config option: nil ];
247
247
}
@@ -261,7 +261,7 @@ - (void)testReuploadV2 {
261
261
NSArray *sizeArray = @[@30000 ];
262
262
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
263
263
for (NSNumber *size in sizeArray) {
264
- NSString *key = [NSString stringWithFormat: @" resume_reupload_v2_%@ k_%d " , size, timestamp];
264
+ NSString *key = [NSString stringWithFormat: @" resume_reupload_v2_%@ k_%ld " , size, ( long ) timestamp];
265
265
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: [size intValue ] * 1024 identifier: key];
266
266
[self allFileTypeResumeUploadTest: 0.5 * 1024 * size.longLongValue tempFile: tempFile key: key config: config option: nil ];
267
267
}
@@ -276,7 +276,7 @@ - (void)testNoKeyV2 {
276
276
}];
277
277
278
278
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
279
- NSString *keyUp = [NSString stringWithFormat: @" resume_NoKey_v2_%d k_%d " , 600 , timestamp];
279
+ NSString *keyUp = [NSString stringWithFormat: @" resume_NoKey_v2_%d k_%ld " , 600 , ( long ) timestamp];
280
280
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: 600 * 1024 identifier: keyUp];
281
281
tempFile.canRemove = NO ;
282
282
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: nil config: configHttp option: nil ];
@@ -333,7 +333,7 @@ - (void)testCustomParamV2 {
333
333
}];
334
334
335
335
NSInteger timestamp = [[NSDate date ] timeIntervalSince1970 ];
336
- NSString *key = [NSString stringWithFormat: @" resume_custom_param_v2_%d " , timestamp];
336
+ NSString *key = [NSString stringWithFormat: @" resume_custom_param_v2_%ld " , ( long ) timestamp];
337
337
QNTempFile *tempFile = [QNTempFile createTempFileWithSize: 1024 * 1024 * 5 identifier: key];
338
338
339
339
[self allFileTypeUploadAndAssertSuccessResult: tempFile key: key config: configHttp option: option];
0 commit comments