Fix flaky cache test via `jest.retryTimes()` (#5533)
Fix flaky cache test via `jest.retryTimes()` (#5533)

* Fix flaky cache test via `jest.retryTimes()`

See the [Jest doc](https://jestjs.io/docs/jest-object#jestretrytimes).

Close #5531
stylelint/stylelint,stylelint/stylelint,stylelint/stylelint,stylelint/stylelint