Skip to content

test: add mustCall() to test-inspector-contexts

Rodrigo Muino Tomonari requested to merge github/fork/Trott/contexts into master

In test-inspector-contexts, if mainContextPromise is modified such that the method argument is changed to something invalid, the test still passes and the second part of the test never runs. Use common.mustCall() to cause the test to fail if the second part of the test does not run.

Refs: https://github.com/nodejs/node/issues/30519#issuecomment-558476839

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading