Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 23, 2023
1 parent 017b383 commit 9907205
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core-data/src/hooks/test/use-entity-record.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ describe( 'useEntityRecord', () => {
);

const { rerender } = render( <UI enabled={ true } /> );

// A minimum delay for a fetch request. The same delay is used again as a control.
await act(
() => new Promise( ( resolve ) => setTimeout( resolve, 0 ) )
);
Expand Down

0 comments on commit 9907205

Please sign in to comment.