Skip to content

Add unit tests for pyamber AsyncRPCClient #4741

@Yicong-Huang

Description

@Yicong-Huang

Task Summary

amber/src/main/python/core/architecture/rpc/async_rpc_client.py has no dedicated spec. Add unit tests for the async_run decorator (running-loop vs. no-loop branches), _create_future (Future allocation + sequence/promise bookkeeping), _fulfill_promise (matching command_id resolves the future and clears the entry; mismatched id logs a warning without raising), receive (delegates command_id and return value), the _create_proxy Proxy stream-method blockers, and controller_stub returning the configured stub.

Task Type

  • Testing / QA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions