未验证 提交 13c94399 编写于 作者: J JJ Kasper 提交者: GitHub

Update to run tests in headless mode on Azure (#12574)

上级 71a5b580
......@@ -137,6 +137,11 @@ const TIMINGS_API = `https://next-timings.jjsweb.site/api/timings`
stdio: 'inherit',
env: {
...process.env,
...(isAzure
? {
HEADLESS: 'true',
}
: {}),
...(usePolling
? {
// Events can be finicky in CI. This switches to a more
......
......@@ -42,7 +42,7 @@ export async function sandbox(id = nanoid()) {
var timeout = setTimeout(() => {
window.__HMR_STATE = 'timeout'
}, 10000)
}, 30 * 1000)
window.__NEXT_HMR_CB = function() {
clearTimeout(timeout)
window.__HMR_STATE = 'success'
......@@ -62,7 +62,7 @@ export async function sandbox(id = nanoid()) {
if (window.__NEXT_HYDRATED) {
callback()
} else {
var timeout = setTimeout(callback, 10 * 1000)
var timeout = setTimeout(callback, 30 * 1000)
window.__NEXT_HYDRATED_CB = function() {
clearTimeout(timeout)
callback()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册