1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Merge pull request #1041 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", status: "success",
}); });
} catch (err) { } catch (err) {
const error = err as Error;
error.message = error.message.replace(worker.url, "WORKER_URL");
updateWorker(worker.id, { updateWorker(worker.id, {
id: worker.id, id: worker.id,
status: "error", status: "error",
error: err as Error, error,
}); });
} }
}); });