瀏覽代碼

increase async delay for more test cases

Evan You 9 年之前
父節點
當前提交
cb0531c4fb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/unit/features/component/component-async.spec.js

+ 2 - 2
test/unit/features/component/component-async.spec.js

@@ -238,7 +238,7 @@ describe('Component async', () => {
                 Promise.resolve().then(() => {
                   Vue.nextTick(next)
                 })
-              }, 0)
+              }, 50)
             }),
             loading: { template: `<div>loading</div>` },
             error: { template: `<div>error</div>` },
@@ -268,7 +268,7 @@ describe('Component async', () => {
                 Promise.resolve().then(() => {
                   Vue.nextTick(next)
                 })
-              }, 5)
+              }, 50)
             }),
             loading: { template: `<div>loading</div>` },
             error: { template: `<div>error</div>` },