-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
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
test: add a test for Expect & checkExpectation #15040
test: add a test for Expect & checkExpectation #15040
Conversation
New test case for Expect header & checkExpectation event based on the existing http test case. Refs: nodejs#14985
8ffd661
to
922bbe2
Compare
function nextTest(testsToRun) { | ||
if (!testsToRun) { | ||
return server.close(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can use the new Countdown
utility under common
... e.g.
const Countdown = require('../common/countdown');
const countdown = new Countdown(2, () => console.log('done'));
countdown.dec();
countdown.dec();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution!
So I just noticed that the documentation for the |
Yes, a separate PR adding the |
Landed in 6eeb06f |
New test case for Expect header & checkExpectation event based on the existing http test case. PR-URL: nodejs#15040 Refs: nodejs#14985 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
New test case for Expect header & checkExpectation event based on the existing http test case. PR-URL: nodejs/node#15040 Refs: nodejs/node#14985 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
New test case for Expect header & checkExpectation event, based on the existing http test case with structural tweaks to make it a bit easier to follow. Part of increasing http2 code coverage as per #14985
Let me know if I should change anything!
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test