mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Merge pull request #1041 from qtchaos/fix/leaky-test
fix: stop failed test from leaking worker url
This commit is contained in:
commit
cc81eb3072
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue