weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [02/19] incubator-weex git commit: check for test case fail
Date Wed, 04 Oct 2017 08:24:36 GMT
 check for test case fail


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

Branch: refs/heads/release-0.16
Commit: fd589427872b223a07d34f32d7965a48eeb08671
Parents: e0fea16
Author: yuhun-alibaba <tomcatswt@gmail.com>
Authored: Wed Oct 4 15:49:10 2017 +0800
Committer: yuhun-alibaba <tomcatswt@gmail.com>
Committed: Wed Oct 4 15:49:10 2017 +0800

----------------------------------------------------------------------
 .../src/test/java/com/taobao/weex/WXSDKEngineTest.java  | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fd589427/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java b/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
index a65f5bb..3d21b4c 100644
--- a/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
+++ b/android/sdk/src/test/java/com/taobao/weex/WXSDKEngineTest.java
@@ -67,7 +67,17 @@ public class WXSDKEngineTest {
   public void testInit() throws Exception {
     assertFalse(WXSDKEngine.isInitialized());
     WXSDKEngine.initialize(RuntimeEnvironment.application,null);
-    assertTrue(WXSDKEngine.isInitialized());
+
+    new Thread(){
+      public void run(){
+        try {
+          Thread.sleep(60000);
+          assertTrue(WXSDKEngine.isInitialized());
+        } catch (InterruptedException e) { }
+      }
+    }.start();
+
+
     //keep compatible
     WXSDKEngine.init(RuntimeEnvironment.application);
     WXSDKEngine.init(RuntimeEnvironment.application,null);


Mime
View raw message