Skip to content

Commit

Permalink
fixup! feat: add web socket server load tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Jul 15, 2024
1 parent 08821bf commit 566fcc0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/e2e/test/k6/scenarios/web-socket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,16 @@ export const run = () => {
socket.setTimeout(() => {
closed = true;
socket.close();
}, 8 * 1000);
}, 80 * 1000);
});

check(res, { 'status is 101': (r) => r && r.status === 101 });

if (res) {
// eslint-disable-next-line no-console
if (res.status !== 101) console.log(`Status ${res.status}`);
// eslint-disable-next-line no-console
} else console.log('No res');
};

export default run;

0 comments on commit 566fcc0

Please sign in to comment.