Skip to content

test: added HBAR Limiter e2e tests for multiple users across different tiers #2022

test: added HBAR Limiter e2e tests for multiple users across different tiers

test: added HBAR Limiter e2e tests for multiple users across different tiers #2022

GitHub Actions / Test Results failed Oct 29, 2024 in 0s

3 fail, 13 pass in 14m 32s

 3 files  39 suites   14m 32s ⏱️
16 tests 13 ✅ 0 💤 3 ❌
45 runs  42 ✅ 0 💤 3 ❌

Results for commit 7c8c136.

Annotations

Check warning on line 0 in HBAR limiter is updated within acceptable tolerance range in relation to actual spent amount by the relay operator

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 3 runs failed: RPC Server Acceptance Tests Acceptance tests @hbarlimiter HBAR Limiter Acceptance Tests HBAR Rate Limit…y operator (HBAR limiter is updated within acceptable tolerance range in relation to actual spent amount by the relay operator)

test-results.0caa25745b57a8bcdf5bdce440c257ca.xml [took 12s]
Raw output
expected 8423114491 to be below 7769868427
AssertionError: expected 8423114491 to be below 7769868427
    at Context.<anonymous> (packages/server/tests/acceptance/hbarLimiter.spec.ts:330:45)
    at Generator.next (<anonymous>)
    at fulfilled (packages/server/tests/acceptance/hbarLimiter.spec.ts:47:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      -8423114491
      +7769868427

Check warning on line 0 in Should eventually exhaust the hbar limit for PRIVILEGED user and still allow another PRIVILEGED user to make calls

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 3 runs failed: RPC Server Acceptance Tests Acceptance tests @hbarlimiter HBAR Limiter Acceptance Tests HBAR Rate Limit…make calls (Should eventually exhaust the hbar limit for PRIVILEGED user and still allow another PRIVILEGED user to make calls)

test-results.7f7ebfa24375e008283d4bb928b5a267.xml [took 24s]
Raw output
expected 4 to equal 3
AssertionError: expected 4 to equal 3
    at Suite.<anonymous> (packages/server/tests/acceptance/hbarLimiter.spec.ts:599:45)
    at Generator.next (<anonymous>)
    at fulfilled (packages/server/tests/acceptance/hbarLimiter.spec.ts:47:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

      + expected - actual

      -4
      +3

Check warning on line 0 in "before all" hook for "should individually update amountSpents of different spending plans"

See this annotation in the file changed.

@github-actions github-actions / Test Results

RPC Server Acceptance Tests Acceptance tests @hbarlimiter HBAR Limiter Acceptance Tests HBAR Rate Limit Tests HBAR Rate Limit F… different spending plans" ("before all" hook for "should individually update amountSpents of different spending plans") failed

test-results.4f139c37907080c60fee4ec6820612da.xml [took 3m 19s]
Raw output
could not coalesce error (error={ "code": -32603, "message": "[Request ID: af6a4f63-5834-4c2a-8eaa-a9e6b8458b2b] Error invoking RPC: [Request ID: af6a4f63-5834-4c2a-8eaa-a9e6b8458b2b] Transaction execution returns a null value: [email protected], callerName=eth_sendRawTransaction, txConstructorName=EthereumTransaction" }, payload={ "id": 467, "jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": [ "0x02f87482012a108086014a9e9878008309b0579404ef35e7fc1dd76cbea33c46feaf87cb151fc7158902b5e3af16b188000080c080a05f86fd74837bf29a961b979763857ed5c9105912d01b78804d4d5b9334a5c1f0a032a8f6c8caa2ba1e22aa19655960d43a9f1c79f95b7aa675a1beadebe0f006ee" ] }, code=UNKNOWN_ERROR, version=6.13.2)
Error: could not coalesce error (error={ "code": -32603, "message": "[Request ID: af6a4f63-5834-4c2a-8eaa-a9e6b8458b2b] Error invoking RPC: [Request ID: af6a4f63-5834-4c2a-8eaa-a9e6b8458b2b] Transaction execution returns a null value: [email protected], callerName=eth_sendRawTransaction, txConstructorName=EthereumTransaction" }, payload={ "id": 467, "jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": [ "0x02f87482012a108086014a9e9878008309b0579404ef35e7fc1dd76cbea33c46feaf87cb151fc7158902b5e3af16b188000080c080a05f86fd74837bf29a961b979763857ed5c9105912d01b78804d4d5b9334a5c1f0a032a8f6c8caa2ba1e22aa19655960d43a9f1c79f95b7aa675a1beadebe0f006ee" ] }, code=UNKNOWN_ERROR, version=6.13.2)
    at makeError (packages/server/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at JsonRpcProvider.getRpcError (packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1059:25)
    at /home/runner/_work/hedera-json-rpc-relay/hedera-json-rpc-relay/packages/server/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45
    at processTicksAndRejections (node:internal/process/task_queues:95:5)