Skip to content
Permalink
Browse files
fix(console-reporter): corrected an issue that might be causing an OO…
…M error

Closes #550
  • Loading branch information
jan-molak committed Apr 28, 2020
1 parent 66eeb12 commit 0b60511a274d58155361cbc636c03dda857b57d0
Showing 2 changed files with 6 additions and 2 deletions.
@@ -317,6 +317,7 @@ export class ConsoleReporter implements StageCrewMember {
this.printer.outdent();
}

this.artifacts.clear();
})
.when(TestRunFinished, (e: TestRunFinished) => {
this.printer.println(this.theme.separator('='));
@@ -403,7 +404,7 @@ class FirstError {

class ActivityRelatedArtifacts {

private readonly events: ActivityRelatedArtifactGenerated[] = [];
private events: ActivityRelatedArtifactGenerated[] = [];

record(event: ActivityRelatedArtifactGenerated) {
this.events.push(event);
@@ -413,4 +414,8 @@ class ActivityRelatedArtifacts {
return this.events
.filter(event => event.details.equals(details));
}

clear() {
this.events = [];
}
}
@@ -11,7 +11,6 @@ export class ActivityDetails extends TinyType {
);
}

// todo: might need to add a correlation id
constructor(
public readonly name: Name,
public readonly correlationId: CorrelationId = CorrelationId.create(),

0 comments on commit 0b60511

Please sign in to comment.