File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- import { SSEClientTransport } from "./sse.js" ;
2
- import { createServer , type Server , type IncomingMessage } from "http" ;
3
- import { JSONRPCMessage } from "../types.js" ;
1
+ import { createServer , type IncomingMessage , type Server } from "http" ;
4
2
import { AddressInfo } from "net" ;
3
+ import { JSONRPCMessage } from "../types.js" ;
4
+ import { SSEClientTransport } from "./sse.js" ;
5
5
6
6
describe ( "SSEClientTransport" , ( ) => {
7
7
let server : Server ;
@@ -56,10 +56,9 @@ describe("SSEClientTransport", () => {
56
56
} ) ;
57
57
} ) ;
58
58
59
- afterEach ( ( done ) => {
60
- transport ?. close ( ) . then ( ( ) => {
61
- server . close ( done ) ;
62
- } ) ;
59
+ afterEach ( async ( ) => {
60
+ await transport . close ( ) ;
61
+ await server . close ( ) ;
63
62
} ) ;
64
63
65
64
describe ( "connection handling" , ( ) => {
You can’t perform that action at this time.
0 commit comments