We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ef8e6 commit 7728905Copy full SHA for 7728905
QiniuSDKTests/QNUpTokenTest.m
@@ -40,6 +40,7 @@ - (void)testRight {
40
XCTAssert(t != nil, @"token was nil");
41
XCTAssert(t.isValid, @"token was invalid");
42
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");
44
XCTAssert([t isValidBeforeDate:[NSDate date]], @"token was invalid");
45
XCTAssert(!t.hasReturnUrl, @"token has return url");
46
}
0 commit comments