Skip to content

Commit

Permalink
Reduce dataProvider delay in useDelete pessimistic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jun 26, 2024
1 parent 505e64f commit 7955d97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SuccessCase = () => {
const index = posts.findIndex(p => p.id === params.id);
posts.splice(index, 1);
resolve({ data: params.previousData });
}, 1000);
}, 500);
});
},
} as any;
Expand Down Expand Up @@ -94,7 +94,7 @@ export const ErrorCase = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
reject(new Error('something went wrong'));
}, 1000);
}, 500);
});
},
} as any;
Expand Down

0 comments on commit 7955d97

Please sign in to comment.