mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: fix multiple incorrect mustNotCall() uses
This does not fix occurrences in test/parallel/test-dns-* because those tests contain unrelated pre-existing bugs that would cause the tests to fail with this fix. This unrelated bug in those tests should be fixed separately before the use of mustNotCall() can be fixed in those files. PR-URL: https://github.com/nodejs/node/pull/44022 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
6990833a4c
commit
a139f5d4e0
5 files changed
+6
-6
No files matched your search
@@ -141,7 +141,7 @@ function onSession(session, next) {
|
||||
|
||||
function testNoTls() {
|
||||
// HTTP/1.1 client
|
||||
get(Object.assign(parse(origin), clientOptions), common.mustNotCall)
|
||||
get(Object.assign(parse(origin), clientOptions), common.mustNotCall())
|
||||
.on('error', common.mustCall(cleanup))
|
||||
.on('error', common.mustCall(testWrongALPN))
|
||||
.end();
|
||||
|
||||
Reference in new issue
Block a user