@@ -16,8 +16,8 @@ import { buildProcessingStallLabel } from '@/components/base/bitcode/execution/p
1616// nowTick feed buildProcessingStallLabel, whose result renders as
1717// <ProcessingIndicator label=… stalled=…/>. This suite drives that pairing with
1818// fake timers pinned to a system clock, asserting the amber flip at exactly the
19- // 90s LLM-call-timeout threshold.
20- describe ( 'ProcessingIndicator — stall label + amber flip at 90s ' , ( ) => {
19+ // 180s LLM-call-timeout threshold.
20+ describe ( 'ProcessingIndicator — stall label + amber flip at 180s ' , ( ) => {
2121 const lastLine = {
2222 phase : 'Discovery' ,
2323 agent : 'DepositDepositorySearchAgent' ,
@@ -41,23 +41,23 @@ describe('ProcessingIndicator — stall label + amber flip at 90s', () => {
4141 return { label, likelyStalled } ;
4242 }
4343
44- it ( 'stays emerald (not stalled) at 89s since the last event' , ( ) => {
45- jest . setSystemTime ( lastLineMs + 89_000 ) ;
44+ it ( 'stays emerald (not stalled) at 179s since the last event' , ( ) => {
45+ jest . setSystemTime ( lastLineMs + 179_000 ) ;
4646 const { label, likelyStalled } = renderIndicatorAtNow ( ) ;
4747 expect ( likelyStalled ) . toBe ( false ) ;
48- expect ( label ) . toContain ( '89s since last update' ) ;
48+ expect ( label ) . toContain ( '179s since last update' ) ;
4949
5050 render ( < ProcessingIndicator label = { label } stalled = { likelyStalled } /> ) ;
5151 const text = screen . getByText ( label ) ;
5252 expect ( text ) . toHaveClass ( 'text-brand-emerald' ) ;
5353 expect ( text ) . not . toHaveClass ( 'text-amber-400' ) ;
5454 } ) ;
5555
56- it ( 'flips to the amber warning tone at exactly 90s (the LLM call timeout default)' , ( ) => {
57- jest . setSystemTime ( lastLineMs + 90_000 ) ;
56+ it ( 'flips to the amber warning tone at exactly 180s (the LLM call timeout default)' , ( ) => {
57+ jest . setSystemTime ( lastLineMs + 180_000 ) ;
5858 const { label, likelyStalled } = renderIndicatorAtNow ( ) ;
5959 expect ( likelyStalled ) . toBe ( true ) ;
60- expect ( label ) . toContain ( '90s since last update' ) ;
60+ expect ( label ) . toContain ( '180s since last update' ) ;
6161
6262 render ( < ProcessingIndicator label = { label } stalled = { likelyStalled } /> ) ;
6363 const text = screen . getByText ( label ) ;
@@ -66,19 +66,19 @@ describe('ProcessingIndicator — stall label + amber flip at 90s', () => {
6666 } ) ;
6767
6868 it ( 'keeps the amber tone as the silence stretches past the threshold' , ( ) => {
69- jest . setSystemTime ( lastLineMs + 90_000 ) ;
69+ jest . setSystemTime ( lastLineMs + 180_000 ) ;
7070 let state = renderIndicatorAtNow ( ) ;
7171 const { rerender } = render (
7272 < ProcessingIndicator label = { state . label } stalled = { state . likelyStalled } /> ,
7373 ) ;
7474
75- // Two more minutes of silence : still stalled, elapsed keeps counting.
76- jest . setSystemTime ( lastLineMs + 210_000 ) ;
75+ // More silence past the bound : still stalled, elapsed keeps counting.
76+ jest . setSystemTime ( lastLineMs + 300_000 ) ;
7777 state = renderIndicatorAtNow ( ) ;
7878 rerender ( < ProcessingIndicator label = { state . label } stalled = { state . likelyStalled } /> ) ;
7979
8080 expect ( state . likelyStalled ) . toBe ( true ) ;
81- expect ( state . label ) . toContain ( '210s since last update' ) ;
81+ expect ( state . label ) . toContain ( '300s since last update' ) ;
8282 expect ( screen . getByText ( state . label ) ) . toHaveClass ( 'text-amber-400' ) ;
8383 } ) ;
8484
0 commit comments