Disconnect from client side if initialization fails

Resolves #24.
This commit is contained in:
Justin Spahr-Summers 2024-11-11 22:08:46 +00:00
commit c82d633d8d
No known key found for this signature in database

View file

@ -122,6 +122,8 @@ test("should reject unsupported protocol version", async () => {
await expect(client.connect(clientTransport)).rejects.toThrow(
"Server's protocol version is not supported: invalid-version",
);
expect(clientTransport.close).toHaveBeenCalled();
});
/*