1
0
Fork 0
mirror of https://github.com/movie-web/movie-web.git synced 2025-02-18 01:20:05 +00:00

Merge pull request from qtchaos/fix/leaky-test

fix: stop failed test from leaking worker url
This commit is contained in:
William Oldham 2024-03-26 17:11:38 +00:00 committed by GitHub
commit cc81eb3072
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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