diff --git a/test/parallel/test-http2-binding.js b/test/parallel/test-http2-binding.js index d202e58eadd7db..5264b1b9f7d549 100644 --- a/test/parallel/test-http2-binding.js +++ b/test/parallel/test-http2-binding.js @@ -231,16 +231,16 @@ const defaultSettings = { for (const name of Object.keys(constants)) { if (name.startsWith('HTTP_STATUS_')) { - assert.strictEqual(expectedStatusCodes[name], constants[name], + assert.strictEqual(constants[name], expectedStatusCodes[name], `Expected status code match for ${name}`); } else if (name.startsWith('HTTP2_HEADER_')) { - assert.strictEqual(expectedHeaderNames[name], constants[name], + assert.strictEqual(constants[name], expectedHeaderNames[name], `Expected header name match for ${name}`); } else if (name.startsWith('NGHTTP2_')) { - assert.strictEqual(expectedNGConstants[name], constants[name], + assert.strictEqual(constants[name], expectedNGConstants[name], `Expected ng constant match for ${name}`); } else if (name.startsWith('DEFAULT_SETTINGS_')) { - assert.strictEqual(defaultSettings[name], constants[name], + assert.strictEqual(constants[name], defaultSettings[name], `Expected default setting match for ${name}`); } }