Skip to content

Commit

Permalink
Remove dev server restart workaround since flakiness is presumably fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 19, 2024
1 parent 97444b0 commit d2ec188
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/development/app-hmr/hmr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ describe(`app-dir-hmr`, () => {
})

it('should update server components pages when env files is changed (nodejs)', async () => {
// If "should update server components after navigating to a page with a different runtime" failed, the dev server is in a corrupted state.
// Restart fixes this.
await next.stop()
await next.start()

const envContent = await next.readFile(envFile)
const browser = await next.browser('/env/node')
expect(await browser.elementByCss('p').text()).toBe('mac')
Expand Down Expand Up @@ -191,10 +186,6 @@ describe(`app-dir-hmr`, () => {
})

it('should update server components pages when env files is changed (edge)', async () => {
// Restart to work around a bug highlighted in the flakiness of "should update server components after navigating to a page with a different runtime"
await next.stop()
await next.start()

const envContent = await next.readFile(envFile)
const browser = await next.browser('/env/edge')
expect(await browser.elementByCss('p').text()).toBe('mac')
Expand Down

0 comments on commit d2ec188

Please sign in to comment.