Skip to content

Commit 3f356bf

Browse files
author
Jack Pope
committed
Fix test for xplat, alwaysThrottleRetries
1 parent 6677c63 commit 3f356bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-reconciler/src/__tests__/useSyncExternalStore-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ describe('useSyncExternalStore', () => {
431431
assertLog([
432432
...(gate('enableSiblingPrerendering')
433433
? ['A', 'B', 'A', 'B', 'B']
434-
: ['A', '(not set)', 'A', '(not set)', 'B']),
434+
: gate(flags => flags.alwaysThrottleRetries)
435+
? ['A', '(not set)', 'A', '(not set)', 'B']
436+
: ['A', '(not set)', 'A', '(not set)', '(not set)', 'B']),
435437
]);
436438

437439
expect(root).toMatchRenderedOutput('AB');

0 commit comments

Comments
 (0)