forked from Streampay-Org/StreamPay-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-output.txt
More file actions
49 lines (45 loc) · 3.39 KB
/
Copy pathtest-output.txt
File metadata and controls
49 lines (45 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
> streampay-frontend@0.1.0 test:e2e
> node scripts/run-from-realpath.mjs jest --runInBand --testPathPattern=e2e\.test\.ts$ --forceExit
[2m[33mconsole.warn[39m[22m
[33m {"event":"rate_limit_throttled","route":"/api/streams/no-such-overflow/withdraw","limitType":"write","timestamp":"2026-05-27T23:12:58.116Z","identityType":"ip","identityDisplay":"unknown"}[39m
[2m[22m
[2m [0m [90m 33 |[39m }[22m
[2m [90m 34 |[39m[22m
[2m [31m[1m>[22m[2m[39m[90m 35 |[39m console[33m.[39mwarn([22m
[2m [90m |[39m [31m[1m^[22m[2m[39m[22m
[2m [90m 36 |[39m [33mJSON[39m[33m.[39mstringify({[22m
[2m [90m 37 |[39m event[33m:[39m [32m"rate_limit_throttled"[39m[33m,[39m[22m
[2m [90m 38 |[39m route[33m,[39m[0m[22m
[2m[22m
[2m [2mat warn ([22m[2mapp/lib/rate-limit-metrics.ts[2m:35:11)[22m[2m[22m
[2m [2mat POST ([22m[2mapp/api/streams/[id]/withdraw/route.ts[2m:39:19)[22m[2m[22m
[2m [2mat Server.<anonymous> ([22m[2m[0m[36mapp/api/streams/stream-lifecycle.e2e.test.ts[39m[0m[2m:119:27)[22m[2m[22m
[0m[7m[1m[32m PASS [39m[22m[27m[0m [2mapp/api/streams/[22m[1mstream-lifecycle.e2e.test.ts[22m
stream lifecycle E2E (HTTP black-box)
[32m✓[39m [2mcreates, starts, pauses, and settles a stream with idempotent retries (69 ms)[22m
[32m✓[39m [2mreturns 404 when settle is called for a stream that does not exist (3 ms)[22m
settle → withdraw happy path
[32m✓[39m [2mfull lifecycle: draft → active → ended → withdrawn (10 ms)[22m
[32m✓[39m [2mwithdraw returns pending when tx not yet on-chain (7 ms)[22m
idempotent replays
[32m✓[39m [2msettle replay returns cached response without calling settleStream again (6 ms)[22m
[32m✓[39m [2mwithdraw replay returns cached response without re-querying Horizon (8 ms)[22m
[32m✓[39m [2mwithdraw on already-withdrawn stream returns 200 without re-processing (6 ms)[22m
rate-limit and approval branches
[32m✓[39m [2mreturns 429 when write rate limit is exhausted (32 ms)[22m
[32m✓[39m [2mnon-org-member actor on org-owned stream → 403 NOT_ORG_MEMBER (1 ms)[22m
[32m✓[39m [2mviewer role on org-owned stream → 403 ROLE_INSUFFICIENT (1 ms)[22m
[32m✓[39m [2msettle on org-owned stream with requireApprovals=2 → 409 APPROVAL_REQUIRED (1 ms)[22m
invalid-state error branches
[32m✓[39m [2mpause on draft stream → 409 INVALID_STREAM_STATE (2 ms)[22m
[32m✓[39m [2msettle on draft stream → 409 INVALID_STREAM_STATE (3 ms)[22m
[32m✓[39m [2mwithdraw on active stream → 409 INVALID_STREAM_STATE (4 ms)[22m
[32m✓[39m [2msettle on non-existent stream → 404 STREAM_NOT_FOUND (1 ms)[22m
[32m✓[39m [2mwithdraw on non-existent stream → 404 STREAM_NOT_FOUND (2 ms)[22m
[32m✓[39m [2msettle failure from Stellar client → 502 SETTLEMENT_FAILED (3 ms)[22m
[1mTest Suites: [22m[1m[32m1 passed[39m[22m, 1 total
[1mTests: [22m[1m[32m17 passed[39m[22m, 17 total
[1mSnapshots: [22m0 total
[1mTime:[22m 0.491 s
[2mRan all test suites[22m[2m matching [22m/e2e.test.ts$/i[2m.[22m
[1mForce exiting Jest: [22mHave you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?