From eb6a58287d53ad1985f41bb767d5155ab03167fa Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 7 Jun 2018 15:34:10 +0200 Subject: [PATCH] debug smoke: Force load from disk since file events are sometimes missing fixes #51296 --- test/smoke/src/areas/debug/debug.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/smoke/src/areas/debug/debug.test.ts b/test/smoke/src/areas/debug/debug.test.ts index 239219405d7..bc313d47884 100644 --- a/test/smoke/src/areas/debug/debug.test.ts +++ b/test/smoke/src/areas/debug/debug.test.ts @@ -25,6 +25,8 @@ export function setup() { config.configurations[0].protocol = 'inspector'; fs.writeFileSync(launchJsonPath, JSON.stringify(config, undefined, 4), 'utf8'); + // force load from disk since file events are sometimes missing + await app.workbench.quickopen.runCommand('File: Revert File'); await app.workbench.editor.waitForEditorContents('launch.json', contents => /"protocol": "inspector"/.test(contents)); assert.equal(config.configurations[0].request, 'launch'); @@ -110,4 +112,4 @@ export function setup() { await app.workbench.debug.stopDebugging(); }); }); -} \ No newline at end of file +} -- GitLab