Skip to content

Commit c685d5e

Browse files
committed
fix: url code hinting flakey tests that fail only in actions
1 parent 1cab4a0 commit c685d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/default/UrlCodeHints/unittests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ define(function (require, exports, module) {
295295
// hints as the scans get complete only. <We had an issue in slow test runners, so this>.
296296
await awaitsForDone(CommandManager.execute(Commands.SHOW_CODE_HINTS));
297297
hintList = CodeHintManager._getCodeHintList();
298-
return hintList && hintList.hints.includes("/testfiles/");
298+
return hintList && hintList.hints && hintList.hints.includes("/testfiles/");
299299
}, "waiting for code hints to be there", 5000, 100);
300300
expect(hintList).toBeTruthy();
301301
expect(hintList.hints).toBeTruthy();

0 commit comments

Comments
 (0)