summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-padding-aligned.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http2-padding-aligned.js')
-rw-r--r--test/parallel/test-http2-padding-aligned.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/parallel/test-http2-padding-aligned.js b/test/parallel/test-http2-padding-aligned.js
index 183eaef738..432e3e8629 100644
--- a/test/parallel/test-http2-padding-aligned.js
+++ b/test/parallel/test-http2-padding-aligned.js
@@ -5,7 +5,7 @@ if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
-const { PADDING_STRATEGY_ALIGNED } = http2.constants;
+const { PADDING_STRATEGY_ALIGNED, PADDING_STRATEGY_CALLBACK } = http2.constants;
const makeDuplexPair = require('../common/duplexpair');
{
@@ -66,3 +66,6 @@ const makeDuplexPair = require('../common/duplexpair');
}));
req.end();
}
+
+// PADDING_STRATEGY_CALLBACK has been aliased to mean aligned padding.
+assert.strictEqual(PADDING_STRATEGY_ALIGNED, PADDING_STRATEGY_CALLBACK);