1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

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,
});
}
});