Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
test: fix uses of deprecated assert.fail with multiple args
PR-URL: #23673 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
- Loading branch information
Showing
with
4 additions
and 6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -120,8 +120,7 @@ class ActivityCollector { | ||
| } | ||
| if (violations.length) { | ||
| console.error(violations.join('\n\n') + '\n'); | ||
| assert.fail(`${violations.length} failed sanity checks`); | ||
| } | ||
| } | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -2,7 +2,6 @@ | ||
|
|
||
| const common = require('../common'); | ||
| const assert = require('assert').strict; | ||
| const { WriteStream } = require('tty'); | ||
|
|
||
| const fd = common.getTTYfd(); | ||