Skip to content

Commit b974628

Browse files
committed
fixup! test_runner: fix --test-rerun-failures swallowing failures on retry
1 parent 091d93f commit b974628

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/parallel/test-runner-test-rerun-failures.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ test('failing test is not swallowed when siblings share its source location', as
170170
const fixturePath = fixtures.path('test-runner', 'rerun-shared-helper-swallows-failure.mjs');
171171
const args = ['--test-rerun-failures', stateFile, fixturePath];
172172

173-
const fixtureKey = relative(process.cwd(), fixturePath);
173+
// getStateFile() normalises backslashes to '/'; match that on Windows.
174+
const fixtureKey = relative(process.cwd(), fixturePath).replaceAll('\\', '/');
174175
const innerLoc = `${fixtureKey}:25:13`;
175176
const passingInner = { passed_on_attempt: 0, name: 'inner' };
176177
const expectedInnerSlots = {

0 commit comments

Comments
 (0)