We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js version: v18.14.1
OS version: macOS Ventura 13.1
Description: A request to a non-responsive route never times-out
The function passed to request(app).timeout(ms).end(fn) is never called.
I expected fn to be called with a timeout error.
This never exits.
const request = require('supertest'); const assert = require('assert'); const express = require('express'); const app = express(); app.get('/user', function(req, res) { // res.status(200).json({ name: 'john' }); }); request(app) .get('/user') .timeout({response: 100, deadline: 100}) .end(function(err, res) { if (err) throw err; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Node.js version: v18.14.1
OS version: macOS Ventura 13.1
Description: A request to a non-responsive route never times-out
Actual behavior
The function passed to request(app).timeout(ms).end(fn) is never called.
Expected behavior
I expected fn to be called with a timeout error.
Code to reproduce
This never exits.
Checklist
The text was updated successfully, but these errors were encountered: