fix: stop failed test from leaking worker url

This commit is contained in:
qtchaos 2024-03-26 18:45:24 +02:00
parent 94c4e71756
commit 42d107dd9d
No known key found for this signature in database
GPG Key ID: 7DA98B2B9EF06A90

View File

@ -83,10 +83,12 @@ export function WorkerTestPart() {
status: "success",
});
} catch (err) {
const error = err as Error;
error.message = error.message.replace(worker.url, "WORKER_URL");
updateWorker(worker.id, {
id: worker.id,
status: "error",
error: err as Error,
error,
});
}
});