mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-13 20:49:08 +01:00
fix: stop failed test from leaking worker url
This commit is contained in:
parent
94c4e71756
commit
42d107dd9d
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user