mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-24 06:49:04 +03:00
test: fix stress tests bots (#32513)
This commit is contained in:
parent
718bd9b35f
commit
ae02331d00
@ -44,9 +44,9 @@ test('should not leak fixtures w/o page', async ({}) => {
|
||||
|
||||
test('should not leak server-side objects', async ({ page }) => {
|
||||
expect(await queryObjectCount(require('../../packages/playwright-core/lib/server/page').Page)).toBe(1);
|
||||
// 4 is because v8 heap creates objects for descendant classes, so WKContext, CRContext, FFContext and our context instance.
|
||||
expect(await queryObjectCount(require('../../packages/playwright-core/lib/server/browserContext').BrowserContext)).toBe(4);
|
||||
expect(await queryObjectCount(require('../../packages/playwright-core/lib/server/browser').Browser)).toBe(4);
|
||||
// 4 is because v8 heap creates objects for descendant classes, so WKContext, CRContext, FFContext, BidiBrowserContext and our context instance.
|
||||
expect(await queryObjectCount(require('../../packages/playwright-core/lib/server/browserContext').BrowserContext)).toBe(5);
|
||||
expect(await queryObjectCount(require('../../packages/playwright-core/lib/server/browser').Browser)).toBe(5);
|
||||
});
|
||||
|
||||
test('should not leak dispatchers after closing page', async ({ context, server }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user