test(support): respect live chat throttle window

This commit is contained in:
devops committed 2026-10-14 16:51:31 +00:00
1 parent 8242a1271f
commit 44221f573d
1 file changed
+1
+1
View File
@@ -21,6 +21,7 @@ async function check(name, body, expected, token, test=()=>true){
for(const field of ['userId','history','context','sessionId'])await check('reject '+field,{message:'سلام',[field]:ids[1]},400);
await Promise.all(ids.map((id,i)=>check('wallet isolation '+i,{message:'کیف پول',scope:'wallet'},201,jwt.sign({sub:id}),d=>d.answer.includes(i?'222':'111')&&!d.answer.includes(i?'111':'222'))));
await check('guest public real model',{message:'مکمل سگ کنینا'},201,null,d=>typeof d.answer==='string'&&!/provider|hermes|api.key/i.test(d.answer));
await new Promise(resolve=>setTimeout(resolve,61000));
await check('football denied',{message:'فوتبال سگ'},201,null,d=>d.answer.includes('فقط درباره'));
await check('URL denied',{message:'مکمل سگ https://example.com'},201,null,d=>d.answer.includes('پیوند'));
console.log('LIVE_STAGE_CHECKS_PASSED',count);