Skip to content

Commit 656684c

Browse files
committed
stop on error
1 parent 0ac3593 commit 656684c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/persistent-caching/persistent-caching.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ describe('persistent-caching', () => {
120120
)
121121
await browser.close()
122122
}
123-
124123
{
125124
const browser = await next.browser('/add-me')
126125
expect(await browser.elementByCss('p').text()).toBe('hello world')
127126
await browser.close()
128127
}
129128
}
130129

130+
let ok = false
131131
await next.patchFile(
132132
'pages/pages.tsx',
133133
(content) => {
@@ -154,6 +154,7 @@ describe('persistent-caching', () => {
154154
await start()
155155
await checkChanges()
156156
await stop()
157+
ok = true
157158
} finally {
158159
await next.renameFolder('app/add-me', 'app/remove-me')
159160
}
@@ -163,6 +164,7 @@ describe('persistent-caching', () => {
163164
)
164165
}
165166
)
167+
if (!ok) await stop()
166168
await start()
167169
})
168170
})

0 commit comments

Comments
 (0)