get tests passing in the browser

This commit is contained in:
ennmichael
2023-04-05 16:00:36 +02:00
parent b650a1684f
commit 2544d79975
21 changed files with 495 additions and 50 deletions

View File

@ -69,12 +69,8 @@ export async function setup(
}
async function restartRelay() {
// Make a request to the endpoint which will crash the process and cause it to restart.
try {
await fetch("http://localhost:12649")
} catch (e) {
// Since the process exits, an error is expected.
}
// Make a request to the endpoint which will exit the process and cause it to restart.
await fetch("http://localhost:12649")
// Wait until the relay process is ready.
for (;;) {