Skip to content

Commit

Permalink
test: expect clean closes
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Oct 27, 2021
1 parent 68d6f6e commit 994c9cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/__tests__/use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ for (const { tServer, startTServer } of tServers) {
await client.waitForClose((event) => {
expect(event.code).toBe(CloseCode.InternalServerError);
expect(event.reason).toBe('Internal server error');
expect(event.wasClean).toBeTruthy(); // because the server reported the error
});
});

Expand Down

0 comments on commit 994c9cb

Please sign in to comment.