fix flaky test (#125256) (#125308)

(cherry picked from commit 31328ff51d)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
This commit is contained in:
Kibana Machine 2022-02-10 17:08:31 -05:00 committed by GitHub
parent d5a9f0b375
commit 21e54e0195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ describe('Initializing the store', () => {
it('starts new searchSessionId', async () => {
const { store } = await makeLensStore({ preloadedState });
await act(async () => {
await store.dispatch(loadInitial(defaultProps));
await store.dispatch(loadInitial({ ...defaultProps, initialInput: undefined }));
});
expect(store.getState()).toEqual({
lens: expect.objectContaining({