Skip to content

Commit 0ba3ac7

Browse files
committed
Align test files when logging conclusion
1 parent 839f36f commit 0ba3ac7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

run-tests.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,10 @@ ${ENDGROUP}`)
708708

709709
try {
710710
await yourTurn()
711-
} catch (err) {
712-
throw new Error(`Skipping ${test.file} due to abort.`, { cause: err })
711+
} catch (cause) {
712+
const error = new Error(`Skipped due to abort.`, { cause })
713+
error.name = test.file
714+
throw error
713715
}
714716

715717
let passed = false
@@ -738,7 +740,7 @@ ${ENDGROUP}`)
738740
})
739741
passed = true
740742
console.log(
741-
`Finished ${test.file} on retry ${i}/${numRetries} in ${
743+
`${test.file} finished on retry ${i}/${numRetries} in ${
742744
time / 1000
743745
}s`
744746
)

0 commit comments

Comments
 (0)