Skip to content

Commit

Permalink
fix: not output "file is generated" twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mrasu committed Apr 27, 2024
1 parent fdf5ca1 commit 39541f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integration/cypress/nodeEvents/eventListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export class EventListener {
if (this.echoedConfig.propagationTestConfig.enabled) {
const passed = logPropagationTestResult(testResult);

logFileCreated(outFile);
if (!passed) {
logFileCreated(outFile);
// Throw error to exit with a non-zero status code. No other way found.
throw new TestFailedError("Propagation leak found");
}
Expand Down

0 comments on commit 39541f8

Please sign in to comment.