Skip to content

Commit eba54cd

Browse files
committed
test(platform): tolerate shared preview worker connection resets
1 parent 8215c09 commit eba54cd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/platform/checks/platform.spec.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,10 @@ test('every registered master resolves through its production workbench URL', as
488488
theme: theme === 'L' ? 'light' : 'dark',
489489
state: 'full',
490490
})
491-
const response = await request.get(`${enabled}?${query}`)
491+
const response = await request.get(`${enabled}?${query}`, {
492+
// The shared dev server can recycle its worker during the catalog sweep.
493+
maxRetries: process.env.PLATFORM_E2E_ORIGIN ? 2 : 0,
494+
})
492495
try {
493496
expect(response.status(), key).toBe(200)
494497
const page = load(await response.text())

0 commit comments

Comments
 (0)