Skip to content

Commit ddb5dac

Browse files
TrottGeoffreyBooth
authored andcommitted
Add debugging information to error message test (#5239)
One of the test cases in test/error_messages.coffee fails intermittently in the Node.js ecosystem-testing tool CITGM. In an effort to help debug what's going on when this occurs, this adds more information to the AssertionError message in question.
1 parent 70c2c47 commit ddb5dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/error_messages.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if require?
8888

8989
eq error.message, 'hello world'
9090
doesNotThrow(-> error.stack)
91-
notEqual error.stack.toString().indexOf(filePath), -1
91+
notEqual error.stack.toString().indexOf(filePath), -1, "Expected " + filePath + "in stack trace: " + error.stack.toString()
9292

9393
test "#4418: stack traces for compiled files reference the correct line number", ->
9494
# The browser is already compiling other anonymous scripts (the tests)

0 commit comments

Comments
 (0)