Skip to content
Browse files

test: fix error when foo in path to git clone

I fixed an error that occured in the test case of the file
test/parallel/test-assert-fail.js when foo was in the path to
the git clone. This occured due to a regex that looked only for the
word foo, and so it was updated to not look for foo/, but only
foo. This way it won't go off from foo being in the path to the
git clone

PR-URL: #14506
Reviewed-By: Luigi Pinca <>
Reviewed-By: Anna Henningsen <>
Reviewed-By: Tobias Nießen <>
Reviewed-By: Vse Mozhet Byt <>
  • Loading branch information
SwimmingSage authored and addaleax committed Jul 30, 2017
1 parent 5796e44 commit 1424e9e0fee8953da66feea6956f133176010f29
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-assert-fail.js
@@ -67,5 +67,5 @@ common.expectsError(() => {
// The stackFrameFunction should exclude the foo frame
function foo() {'first', 'second', 'message', '!==', foo); },
(err) => !/foo/m.test(err.stack)
(err) => !/^\s*at\sfoo\b/m.test(err.stack)

0 comments on commit 1424e9e

Please sign in to comment.
You can’t perform that action at this time.