We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953ff5e commit af7b217Copy full SHA for af7b217
packages/kbn-test/src/functional_test_runner/lib/suite_tracker.ts
@@ -56,7 +56,7 @@ export class SuiteTracker {
56
57
getTracked(suite: object): SuiteInProgress {
58
if (!this.inProgressSuites.has(suite)) {
59
- this.inProgressSuites.set(suite, {} as SuiteInProgress);
+ this.inProgressSuites.set(suite, { success: undefined } as SuiteInProgress);
60
}
61
return this.inProgressSuites.get(suite)!;
62
@@ -97,7 +97,7 @@ export class SuiteTracker {
97
tracked.endTime = new Date();
98
99
// The suite ended without any children failing, so we can mark it as successful
100
- if (!('success' in tracked)) {
+ if (typeof tracked.success === 'undefined') {
101
tracked.success = true;
102
103
0 commit comments