diff options
Diffstat (limited to 'test/parallel/test-http-client-timeout-option.js')
-rw-r--r-- | test/parallel/test-http-client-timeout-option.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-http-client-timeout-option.js b/test/parallel/test-http-client-timeout-option.js index 6741fbe0bd..6351a2ca4a 100644 --- a/test/parallel/test-http-client-timeout-option.js +++ b/test/parallel/test-http-client-timeout-option.js @@ -3,6 +3,10 @@ const common = require('../common'); const assert = require('assert'); const http = require('http'); +assert.throws(() => { + http.request({ timeout: null }); +}, /The "timeout" argument must be of type number/); + const options = { method: 'GET', port: undefined, |