@davoodmehraban89 / VELYQOR / commits / 688d18d
Fork 0

Intelligence, Advanced Charting & Trading Platform

test(db): include quality-gate timestamp proof in concurrent alert commit fixtures

davoodmehraban89 committed Oct 22, 2026 at 23:43 UTC 688d18d99810453216d4854cd794ecb9671f774d
1 file changed +4 -1
scripts/check-alert-runtime-concurrency.mjs
+4 -1
@@ -17,7 +17,10 @@ const rule='cross-session-alert';
17 const time='2026-10-22T12:00:00.000Z';
18 const state=JSON.stringify({alert:{
19 id:rule,phase:'TRIGGERED',eventId:event,triggeredAt:time,lastTimestamp:time
20 -},gate:{suspended:false}});
20 +},gate:{suspended:false,lastSampleAt:time,lastAccepted:{
21 + timestamp:time,provider:'S1',symbol:'USD_IRT_FREE',
22 + side:'SELL',unit:'IRT_PER_USD',price:1100
23 +}}});
24 const stmt=q=>execFileSync('psql',['-X','-q','-A','-t','-v','ON_ERROR_STOP=1','-c',q],
25 {env,encoding:'utf8',timeout:14000,stdio:['ignore','pipe','pipe']}).trim();
26