Browse Source

fix flaky security-warnings test (#12749)

Cheng Zhao 7 years ago
parent
commit
e00b128a50
1 changed files with 1 additions and 2 deletions
  1. 1 2
      spec/security-warnings-spec.js

+ 1 - 2
spec/security-warnings-spec.js

@@ -54,9 +54,8 @@ describe('security warnings', () => {
   })
 
   afterEach(() => {
-    closeWindow(w).then(() => { w = null })
-
     useCsp = true
+    return closeWindow(w).then(() => { w = null })
   })
 
   it('should warn about Node.js integration with remote content', (done) => {