Skip to content

Commit

Permalink
Deflake weboscket.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jun 21, 2024
1 parent 2338f16 commit 8c548d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/js/web/websocket/websocket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ describe("WebSocket", () => {
await openAndCloseWS();
if (i % 100 === 0) {
current_websocket_count = getWebSocketCount();
// if we have more than 10 websockets open, we have a problem
expect(current_websocket_count).toBeLessThanOrEqual(10);
// if we have more than 20 websockets open, we have a problem
expect(current_websocket_count).toBeLessThanOrEqual(20);
if (initial_websocket_count === 0) {
initial_websocket_count = current_websocket_count;
}
Expand Down

0 comments on commit 8c548d2

Please sign in to comment.