GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use `act` in fuzz tester to flush expired work (#21108) · react/react@048ee4c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src/__tests__
    • ReactIncrementalTriangle-test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-reconciler/src/__tests__/ReactIncrementalTriangle-test.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/__tests__/ReactIncrementalTriangle-test.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ describe('ReactIncrementalTriangle', () => {
432432
assertConsistentTree(activeLeafIndices);
433433
}
434434
// Flush remaining work
435-
Scheduler.unstable_flushAllWithoutAsserting();
435+
ReactNoop.act(() => {
436+
Scheduler.unstable_flushAllWithoutAsserting();
437+
});
436438
assertConsistentTree(activeLeafIndices, expectedCounterAtEnd);
437439
}
438440

@@ -562,6 +564,12 @@ ${formatActions(actions)}
562564
['b', flush(7)],
563565
['c', toggle(0)],
564566
);
567+
568+
simulateMultipleRoots(
569+
['c', step(1)],
570+
['c', expire(5000)],
571+
['b', toggle(1)],
572+
);
565573
});
566574

567575
it('generative tests', () => {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.