Skip to content

Commit 583f629

Browse files
committed
fix: intermittant failures in eslint tests in pipelines
1 parent e85a427 commit 583f629

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/spec/Extn-ESLint-integ-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ define(function (require, exports, module) {
126126

127127
it("should show JSHint in desktop app if ESLint load failed for project", async function () {
128128
await _openSimpleES6Project();
129-
await _fileSwitcherroForESLintFailDetection();
130-
await awaitsFor(()=>{
129+
await awaitsFor(async ()=>{
130+
await _fileSwitcherroForESLintFailDetection();
131131
return $("#problems-panel").text().includes(Strings.DESCRIPTION_ESLINT_DO_NPM_INSTALL);
132-
}, "ESLint error to be shown");
132+
}, "ESLint error to be shown", 3000, 300);
133133
await awaitsFor(()=>{
134134
return $("#problems-panel").text().includes(JSHintErrorES6Error_js);
135135
}, "JShint error to be shown");
@@ -158,10 +158,10 @@ define(function (require, exports, module) {
158158

159159
it("should show ESLint and JSHint in desktop app for es6 project or below", async function () {
160160
await _loadAndValidateES6Project();
161-
await _fileSwitcherroForESLintFailDetection();
162-
await awaitsFor(()=>{
161+
await awaitsFor(async ()=>{
162+
await _fileSwitcherroForESLintFailDetection();
163163
return $("#problems-panel").text().includes(JSHintErrorES6Error_js);
164-
}, "JShint error to be shown");
164+
}, "JShint error to be shown", 3000, 300);
165165
}, 5000);
166166
});
167167

0 commit comments

Comments
 (0)