Skip to content

Commit 97b57af

Browse files
committed
fix(capability): fix post run script
1 parent bdf44bc commit 97b57af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/driver.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,12 @@ export class NovaWindowsDriver extends BaseDriver<NovaWindowsDriverConstraints,
217217
// noop
218218
}
219219
}
220-
await this.terminatePowerShellSession();
221-
222220
if (this.caps.postrun) {
223221
this.log.info('Executing postrun PowerShell script...');
224222
await this.executePowerShellScript(this.caps.postrun as Exclude<Parameters<typeof commands['executePowerShellScript']>[0], string>);
225223
}
226224

225+
await this.terminatePowerShellSession();
227226
await super.deleteSession(sessionId);
228227
}
229228

0 commit comments

Comments
 (0)