()
| 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 | } |
no test coverage detected
searching dependent graphs…