File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ const serverEndpoint = await listen(mustCall(async (ss) => {
6565 // Deinstall handlers
6666 stream . onheaders = undefined ;
6767 stream . onsessionid = undefined ;
68- stream . closed . catch ( mustCall ( ( error ) => {
69- assert . strictEqual ( error . errorCode , 0x170D7B68n ) ; // NGHTTP3_WT_SESSION_GONE
70- } ) ) ;
7168 const sessionid2 = await serverSessionOpened . promise ;
7269 assert . strictEqual ( sessionid , sessionid2 ) ;
7370 // Now we get the data
@@ -185,9 +182,6 @@ const clientUnidiStream = await clientSession.createUnidirectionalStream({
185182 webtransportSession : wtSessionStream // Associate it with the sessionStream
186183} ) ;
187184
188- clientUnidiStream . closed . catch ( mustCall ( ( error ) => {
189- assert . strictEqual ( error . errorCode , 0x170D7B68n ) ; // NGHTTP3_WT_SESSION_GONE
190- } ) ) ;
191185// Next step send some data
192186await serverSessionOpened . promise ;
193187
Original file line number Diff line number Diff line change @@ -102,9 +102,6 @@ const serverEndpoint = await listen(mustCall(async (ss) => {
102102 webtransportSession : serverSessionStream // Associate it with the sessionStream
103103 } ) ;
104104
105- serverUnidiStream . closed . catch ( mustCall ( ( error ) => {
106- assert . strictEqual ( error . errorCode , 0x170D7B68n ) ; // NGHTTP3_WT_SESSION_GONE
107- } ) ) ;
108105 // Next step send some data
109106 await serverSessionOpened . promise ;
110107
@@ -162,9 +159,7 @@ clientSession.onstream = mustCall((stream) => {
162159 // Deinstall handlers
163160 stream . onheaders = undefined ;
164161 stream . onsessionid = undefined ;
165- stream . closed . catch ( mustCall ( ( error ) => {
166- assert . strictEqual ( error . errorCode , 0x170D7B68n ) ; // NGHTTP3_WT_SESSION_GONE
167- } ) ) ;
162+
168163 const sessionid2 = await serverSessionOpened . promise ;
169164 assert . strictEqual ( sessionid , sessionid2 ) ;
170165 // Now we get the data
You can’t perform that action at this time.
0 commit comments