test: test-http(s)-set-timeout-server.js tests should be more similar

  • Version: all
  • Platform: n/a
  • Subsystem: test, http, https

Both of these tests contain unique changes that should copied to the other.

Examples:

  • test-http-set-timeout-server.js has a secReceived check in serverResponseTimeoutWithPipeline() that was added to prevent flakiness, but this does not exist in the https counterpart.

  • test-https-set-timeout-server.js utilizes common.mustCall(), common.mustNotCall(), etc., while the http counterpart still utilizes the old method of checking flags on exit of the process.