Skip to content

Commit 7728905

Browse files
committed
UpToken add test case
1 parent a2ef8e6 commit 7728905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

QiniuSDKTests/QNUpTokenTest.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ - (void)testRight {
4040
XCTAssert(t != nil, @"token was nil");
4141
XCTAssert(t.isValid, @"token was invalid");
4242
XCTAssert([t isValidForDuration:5*60], @"token was invalid for 5*60");
43+
XCTAssert(![t isValidForDuration:12*30*24*3600], @"token was valid for 12*30*24*3600");
4344
XCTAssert([t isValidBeforeDate:[NSDate date]], @"token was invalid");
4445
XCTAssert(!t.hasReturnUrl, @"token has return url");
4546
}

0 commit comments

Comments
 (0)