瀏覽代碼

fix travis

Daniel Zlotin 7 年之前
父節點
當前提交
ec5f9cea6f
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      scripts/test.e2e.ios.js

+ 2
- 4
scripts/test.e2e.ios.js 查看文件

@@ -7,14 +7,12 @@ run();
7 7
 
8 8
 function run() {
9 9
   try {
10
-    startRecording();
11 10
     const conf = release ? `release` : `debug`;
12 11
     exec.execSync(`detox build --configuration ios.sim.${conf}`);
13
-    exec.execAsync(`sleep 30`).then(() => {
12
+    exec.execAsync(`sleep 10`).then(() => {
14 13
       exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
15 14
     });
16
-
17
-
15
+    startRecording();
18 16
     exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
19 17
   } finally {
20 18
     stopRecording();