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