mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-28 21:32:05 +00:00
Refactor Container Copy dropdowns with integrated state management (#2279)
This commit is contained in:
@@ -433,7 +433,7 @@ describe("CopyJobActions", () => {
|
||||
(dataTransferService.listByDatabaseAccount as jest.Mock).mockRejectedValue(abortError);
|
||||
|
||||
await expect(getCopyJobs()).rejects.toMatchObject({
|
||||
message: expect.stringContaining("Please wait for the current fetch request to complete"),
|
||||
message: expect.stringContaining("Previous copy job request was cancelled."),
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -124,8 +124,7 @@ export const getCopyJobs = async (): Promise<CopyJobType[]> => {
|
||||
const errorContent = JSON.stringify(error.content || error.message || error);
|
||||
if (errorContent.includes("signal is aborted without reason")) {
|
||||
throw {
|
||||
message:
|
||||
"Please wait for the current fetch request to complete. The previous copy job fetch request was aborted.",
|
||||
message: "Previous copy job request was cancelled.",
|
||||
};
|
||||
} else {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user