Skip to content

Noissue - handle uncaught exception on wrong TEST_PAGES_URL

Toni Feliu requested to merge (removed):handle_wrong_url_arg into next

When using the TEST_PAGES_URL env var, a wrong value there produces the following uncaught error:

% TEST_PAGES_URL=http://localhos:5000 npm test -- -g 'Chromium \(latest\)' 
...
  1) Uncaught error outside test suite:
     Uncaught TypeError: Cannot destructure property `statusCode` of 'undefined' or 'null'.
      at Request._callback (test/misc/utils.js:27:24)
      at self.callback (node_modules/request/request.js:185:22)
      at Request.onRequestError (node_modules/request/request.js:877:8)
      at Socket.socketErrorListener (_http_client.js:406:9)
      at emitErrorNT (internal/streams/destroy.js:92:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)

This MR handles that case.

Merge request reports