mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
test: keep the new tests within the lint and hand-built service ratchets
This commit is contained in:
@@ -550,9 +550,11 @@ describe('AuthController (authenticated)', () => {
|
||||
const other = { ...user, id: 2 } as User;
|
||||
// Both users sit behind the same NAT address, and the first one burns its
|
||||
// whole ceiling.
|
||||
for (let i = 0; i < 120; i++) {
|
||||
await ac(asvc({}), s, { createWsToken: vi.fn().mockReturnValue({ token: 'ws' }) }).wsToken(user, req);
|
||||
}
|
||||
await Promise.all(
|
||||
Array.from({ length: 120 }, () =>
|
||||
ac(asvc({}), s, { createWsToken: vi.fn().mockReturnValue({ token: 'ws' }) }).wsToken(user, req),
|
||||
),
|
||||
);
|
||||
expect(
|
||||
await thrownAsync(() =>
|
||||
ac(asvc({}), s, { createWsToken: vi.fn().mockReturnValue({ token: 'ws' }) }).wsToken(user, req),
|
||||
|
||||
Reference in New Issue
Block a user