Skip to content

test: changed test2 & test3 of test-vm-timeout.js

Rodrigo Muino Tomonari requested to merge github/fork/aniketshukla/master into master

Changed test2 of test-vm-timeout.js so that entire error message would be matched in assert.throw. Before test 2 of test-vm-timeout.js would match any RangeError, now it looks specifically for the error message "RangeError: timeout must be a positive number"

Changed test 3 of test-vm-timeout.js so that entire error message would be matched in assert.throw. Before test 3 of test-vm-timeout.js would match any RangeError, now it looks specifically for the error message "RangeError: timeout must be a positive number"

Ref: https://github.com/nodejs/node/issues/13454

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test,vm

Merge request reports

Loading