Skip to content

Commit e868117

Browse files
authored
Smoke test driver.exitApplication sometimes does not work (microsoft#157979) (microsoft#158479)
1 parent 675fe60 commit e868117

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

automation/src/code.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class Code {
140140
}
141141

142142
async exit(): Promise<void> {
143-
return measureAndLog(new Promise<void>((resolve, reject) => {
143+
return measureAndLog(new Promise<void>(resolve => {
144144
const pid = this.mainProcess.pid!;
145145

146146
let done = false;
@@ -154,8 +154,8 @@ export class Code {
154154
while (!done) {
155155
retries++;
156156

157-
if (retries === 20) {
158-
this.logger.log('Smoke test exit call did not terminate process after 10s, forcefully exiting the application...');
157+
if (retries === 40) {
158+
this.logger.log('Smoke test exit call did not terminate process after 20s, forcefully exiting the application...');
159159

160160
// no need to await since we're polling for the process to die anyways
161161
treekill(pid, err => {

smoke/src/areas/workbench/data-loss.test.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@ import { createApp, timeout, installDiagnosticsHandler, installAppAfterHandler,
99

1010
export function setup(ensureStableCode: () => string | undefined, logger: Logger) {
1111
describe('Data Loss (insiders -> insiders)', function () {
12-
13-
// There are cases where `exitApplication` does not actually
14-
// stop the application and our attempt then to `kill` the
15-
// process tree results in data loss / state loss. All these
16-
// tests here rely on state getting persisted properly, so
17-
// until we have figured out the root cause, we retry these
18-
// tests.
19-
// See: https://github.com/microsoft/vscode/issues/157979
20-
if (process.platform === 'darwin') {
21-
this.retries(2);
22-
}
23-
2412
let app: Application | undefined = undefined;
2513

2614
// Shared before/after handling
@@ -142,18 +130,6 @@ export function setup(ensureStableCode: () => string | undefined, logger: Logger
142130
});
143131

144132
describe('Data Loss (stable -> insiders)', function () {
145-
146-
// There are cases where `exitApplication` does not actually
147-
// stop the application and our attempt then to `kill` the
148-
// process tree results in data loss / state loss. All these
149-
// tests here rely on state getting persisted properly, so
150-
// until we have figured out the root cause, we retry these
151-
// tests.
152-
// See: https://github.com/microsoft/vscode/issues/157979
153-
if (process.platform === 'darwin') {
154-
this.retries(2);
155-
}
156-
157133
let insidersApp: Application | undefined = undefined;
158134
let stableApp: Application | undefined = undefined;
159135

0 commit comments

Comments
 (0)