Skip to content

Commit f11e142

Browse files
committed
Add reset check
1 parent 140c425 commit f11e142

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/api/tls/models/tls.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,24 @@ class Tls {
8383
}
8484

8585
startCucs() {
86-
model.cuc.startCuc({
87-
reset: this.reset,
88-
app: {
89-
log: this.#log,
90-
status: this.#status,
91-
testSessionId: this.#testingProps.runableSessionProps.sessionProps.testSession.id,
92-
cucumberArgs: this.#createCucumberArgs(this.#testingProps.runableSessionProps),
93-
debug: {
94-
execArgvDebugString: this.#debug.execArgvDebugString,
95-
firstChildProcessInspectPort: this.#debug.firstChildProcessInspectPort
96-
}
97-
},
98-
appInstance: this
99-
});
86+
if (this.#testingProps) {
87+
model.cuc.startCuc({
88+
reset: this.reset,
89+
app: {
90+
log: this.#log,
91+
status: this.#status,
92+
testSessionId: this.#testingProps.runableSessionProps.sessionProps.testSession.id,
93+
cucumberArgs: this.#createCucumberArgs(this.#testingProps.runableSessionProps),
94+
debug: {
95+
execArgvDebugString: this.#debug.execArgvDebugString,
96+
firstChildProcessInspectPort: this.#debug.firstChildProcessInspectPort
97+
}
98+
},
99+
appInstance: this
100+
});
101+
} else {
102+
this.#log.error('this.#testingProps was falsy. It appears that the Tester was reset between calling initTester and startCucs', { tags: ['tls'] });
103+
}
100104
}
101105

102106
async testPlan(testJob) { // eslint-disable-line no-unused-vars

0 commit comments

Comments
 (0)