test: fix strictEqual input parameters order
PR-URL: https://github.com/nodejs/node/pull/23570 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
2505f05ce8
commit
552fe56b65
@ -34,7 +34,7 @@ let count = 0;
|
|||||||
|
|
||||||
const server = http.createServer(function(req, res) {
|
const server = http.createServer(function(req, res) {
|
||||||
let timeoutId;
|
let timeoutId;
|
||||||
assert.strictEqual('POST', req.method);
|
assert.strictEqual(req.method, 'POST');
|
||||||
req.pause();
|
req.pause();
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@ -82,5 +82,5 @@ function makeRequest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
assert.strictEqual(1024 * 10240, count);
|
assert.strictEqual(count, 1024 * 10240);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user