Skip to content

Commit f269fe7

Browse files
committed
Update tests
1 parent 6f7b74c commit f269fe7

File tree

2 files changed

+64
-183
lines changed

2 files changed

+64
-183
lines changed

packages/react-client/src/__tests__/ReactFlight-test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,8 +2834,7 @@ describe('ReactFlight', () => {
28342834
stack: ' in Object.<anonymous> (at **)',
28352835
props: {},
28362836
},
2837-
{time: 22},
2838-
{time: 23}, // This last one is when the promise resolved into the first party.
2837+
{time: gate(flags => flags.enableAsyncDebugInfo) ? 25 : 23}, // This last one is when the promise resolved into the first party.
28392838
]
28402839
: undefined,
28412840
);
@@ -2850,7 +2849,7 @@ describe('ReactFlight', () => {
28502849
stack: ' in myLazy (at **)\n in lazyInitializer (at **)',
28512850
props: {},
28522851
},
2853-
{time: 22},
2852+
{time: gate(flags => flags.enableAsyncDebugInfo) ? 23 : 24},
28542853
]
28552854
: undefined,
28562855
);
@@ -2865,7 +2864,7 @@ describe('ReactFlight', () => {
28652864
stack: ' in Object.<anonymous> (at **)',
28662865
props: {},
28672866
},
2868-
{time: 22},
2867+
{time: gate(flags => flags.enableAsyncDebugInfo) ? 24 : 25},
28692868
]
28702869
: undefined,
28712870
);
@@ -2975,7 +2974,6 @@ describe('ReactFlight', () => {
29752974
stack: ' in Object.<anonymous> (at **)',
29762975
props: {},
29772976
},
2978-
{time: 19},
29792977
]
29802978
: undefined,
29812979
);

0 commit comments

Comments
 (0)