test: سكربت تحقّق مسار المواقع على السيرفر (H)
loadtest يرسل نبضة واحدة لكل سائق فلا يختبر العتبات إطلاقاً. هذا السكربت يرسل 10 نبضات من مكان ثابت ثم 8 نبضات بتحرّك 30م، ويتحقق من علم significant الذي ترجعه POST /drivers/location — أي العتبات على Redis حقيقي عبر الـAPI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
da37dffa44
commit
7e24c63dd8
@@ -66,3 +66,9 @@ docker run --rm --network tripz-net -e BASE=http://tripz-api:4010/api \
|
||||
docker run --rm --network tripz-net -e BASE=http://tripz-api:4010/api \
|
||||
-v /home/tripz-llc/backend/scripts:/s node:22-alpine node /s/loadtest.mjs 300 30
|
||||
```
|
||||
|
||||
```
|
||||
# مسار المواقع (docs/17 — H): يثبت أن العتبات تعمل وأن الواقف لا يكلّف شيئاً
|
||||
docker run --rm --network tripz-net -e BASE=http://tripz-api:4010/api \
|
||||
-v /home/tripz-llc/backend/scripts:/s node:22-alpine node /s/location-test.mjs
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user