Skip to content

Commit 2906145

Browse files
committed
Remove dev server restart workaround since flakiness is presumably fixed
1 parent 6e7e6e1 commit 2906145

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/development/app-hmr/hmr.test.ts

-9
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ describe(`app-dir-hmr`, () => {
138138
})
139139

140140
it('should update server components pages when env files is changed (nodejs)', async () => {
141-
// If "should update server components after navigating to a page with a different runtime" failed, the dev server is in a corrupted state.
142-
// Restart fixes this.
143-
await next.stop()
144-
await next.start()
145-
146141
const envContent = await next.readFile(envFile)
147142
const browser = await next.browser('/env/node')
148143
expect(await browser.elementByCss('p').text()).toBe('mac')
@@ -191,10 +186,6 @@ describe(`app-dir-hmr`, () => {
191186
})
192187

193188
it('should update server components pages when env files is changed (edge)', async () => {
194-
// Restart to work around a bug highlighted in the flakiness of "should update server components after navigating to a page with a different runtime"
195-
await next.stop()
196-
await next.start()
197-
198189
const envContent = await next.readFile(envFile)
199190
const browser = await next.browser('/env/edge')
200191
expect(await browser.elementByCss('p').text()).toBe('mac')

0 commit comments

Comments
 (0)