سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 18:15 UTC
test(auth): assert actual loaded pullAll includes timeout invariant at runtime
davoodmehraban89 committed
Oct 12, 2026 at 20:46 UTC
d9d959361cf1fc2e0e03aa5338cf657d33471186
1 file changed
+4
-2
scripts/phase0-startup-performance.spec.js
+4
-2
@@ -158,11 +158,13 @@ test('F0 cancelled company records read cannot apply a late partial datastore sn
158
sameSnapshot:datastore===before,
159
noDummyRecord:!(datastore.products||[]).some(p=>p.id==='dummy'),
160
noDummySnapshot:!syncSnap.has('products|dummy'),
161
- aborted:controller.signal.aborted
161
+ aborted:controller.signal.aborted,
162
+ runtimeHasCancelGuard:String(pullAll).includes('FINORA_LOGIN_READ_TIMEOUT')
163
+
164
};
165
}finally{
166
sb.from=originalFrom;currentUser=originalUser;
167
}
168
});
167
- expect(unchanged).toEqual({sameSnapshot:true,noDummyRecord:true,noDummySnapshot:true,aborted:true});
169
+ expect(unchanged).toEqual({sameSnapshot:true,noDummyRecord:true,noDummySnapshot:true,aborted:true,runtimeHasCancelGuard:true});
170
});