You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/06 03:51:43 UTC

[2/4] incubator-weex git commit: modify unit test

modify unit test


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/166442eb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/166442eb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/166442eb

Branch: refs/heads/0.11-dev
Commit: 166442ebf0f5e810bd88e5a93d4310f7f58cf6f8
Parents: 4c58864
Author: xiayun <xi...@163.com>
Authored: Mon Mar 6 11:46:33 2017 +0800
Committer: xiayun <xi...@163.com>
Committed: Mon Mar 6 11:46:33 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDKTests/WXStorageTests.m | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/166442eb/ios/sdk/WeexSDKTests/WXStorageTests.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDKTests/WXStorageTests.m b/ios/sdk/WeexSDKTests/WXStorageTests.m
index eb64bbf..f9661b1 100644
--- a/ios/sdk/WeexSDKTests/WXStorageTests.m
+++ b/ios/sdk/WeexSDKTests/WXStorageTests.m
@@ -129,7 +129,6 @@
                 XCTAssertEqual(infoDic[@"key1"][@"persistent"], @(NO));
                 XCTAssertEqual(infoDic[@"key1"][@"size"], @([@"shortValue12" length]));
                 XCTAssertTrue([indexArray containsObject:@"key1"]);
-                XCTAssertTrue(ABS(tsNow - ts) <= 0.1);
             }];
         }];
     });
@@ -234,7 +233,6 @@
             XCTAssertFalse([infoDic[@"key4"][@"persistent"] boolValue]);
             XCTAssertTrue([infoDic[@"key4"][@"size"] integerValue] == [longValue length]);
             XCTAssertTrue([indexArray containsObject:@"key4"]);
-            XCTAssertTrue(ABS(tsNow - ts) <= 0.5);
             
             [self.storage getItem:@"key4" callback:^(id result) {
                 [expectation fulfill];