MCPcopy Index your code
hub / github.com/nodejs/node / testNoALPN

Function testNoALPN

test/parallel/test-http2-https-fallback.js:161–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 function testNoALPN() {
162 // TLS client does not send an ALPN extension
163 let text = '';
164 tls(Object.assign({ port }, clientOptions))
165 .setEncoding('utf8')
166 .on('data', (chunk) => text += chunk)
167 .on('end', common.mustCall(() => {
168 assert.match(text, /Missing ALPN Protocol, expected `h2` to be available/);
169 cleanup();
170 }));
171 }
172 }));
173}

Callers 1

testWrongALPNFunction · 0.85

Calls 5

assignMethod · 0.80
cleanupFunction · 0.70
matchMethod · 0.65
onMethod · 0.45
setEncodingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…