|
1 | 1 | import type { Connection, StreamIter } from '@/native';
|
2 | 2 | import type { ClientCrypto, Host, Port, ServerCrypto } from '@';
|
3 |
| -import { Host as HostPort, quiche } from '@/native'; |
| 3 | +import { quiche } from '@/native'; |
4 | 4 | import QUICConnectionId from '@/QUICConnectionId';
|
5 |
| -import { QUICConfig } from '@'; |
6 | 5 | import { buildQuicheConfig, clientDefault, serverDefault } from '@/config';
|
7 | 6 | import * as utils from '@/utils';
|
8 | 7 | import * as testsUtils from '../utils';
|
@@ -31,10 +30,10 @@ function iterToArray(iter: StreamIter) {
|
31 | 30 | * Does all the steps for initiating a stream on both sides.
|
32 | 31 | * Used as a starting point for a bunch of tests.
|
33 | 32 | */
|
34 |
| -function initStreamState( |
| 33 | +function _initStreamState( |
35 | 34 | connectionSource: Connection,
|
36 | 35 | connectionDestination: Connection,
|
37 |
| - streamId: number, |
| 36 | + _streamId: number, |
38 | 37 | ) {
|
39 | 38 | const message = Buffer.from('Message');
|
40 | 39 | connectionSource.streamSend(0, message, false);
|
@@ -100,7 +99,7 @@ describe('quiche stream lifecycle', () => {
|
100 | 99 | );
|
101 | 100 |
|
102 | 101 | const clientBuffer = Buffer.allocUnsafe(quiche.MAX_DATAGRAM_SIZE);
|
103 |
| - let [clientSendLength, clientSendInfo] = clientConn.send(clientBuffer); |
| 102 | + const [clientSendLength] = clientConn.send(clientBuffer); |
104 | 103 | const clientHeaderInitial = quiche.Header.fromSlice(
|
105 | 104 | clientBuffer.subarray(0, clientSendLength),
|
106 | 105 | quiche.MAX_CONN_ID_LEN,
|
@@ -133,7 +132,7 @@ describe('quiche stream lifecycle', () => {
|
133 | 132 | });
|
134 | 133 |
|
135 | 134 | // Client will retry the initial packet with the token
|
136 |
| - [clientSendLength, clientSendInfo] = clientConn.send(clientBuffer); |
| 135 | + [clientSendLength] = clientConn.send(clientBuffer); |
137 | 136 |
|
138 | 137 | // Server accept
|
139 | 138 | serverConn = quiche.Connection.accept(
|
|
0 commit comments