Skip to content

Commit

Permalink
Fix flake mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Feb 16, 2024
1 parent 210345e commit 7fff3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/cli/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async function getTestRunnerOptions(argv = []) {
}) || {};

let attemptReport = {};
if (process.env.GITHUB_RUN_ATTEMPT > 1 || cliArgs._unknown.includes('--flake-mode')) {
if (process.env.GITHUB_RUN_ATTEMPT > 1 || cliArgs._unknown?.includes('--flake-mode')) {
const reportPath = join(process.cwd(), '.d2l-test', '.attempt-report.js');
attemptReport = (await import(reportPath).catch(() => {}))?.default;
console.log('READING ATTEMPT REPORT:');/* eslint-disable-line */
Expand Down

0 comments on commit 7fff3fe

Please sign in to comment.