Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC gateway] - Add test for each of the RPC endpoint #1732

Merged
merged 1 commit into from
May 4, 2022

Conversation

patrickkuo
Copy link
Contributor

No description provided.

Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thoroughness!

let result: ObjectResponse = http_client.get_owned_objects(*address).await?;
let result = result
.objects
.into_iter()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, this could probably be an iter here and below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh... to_object_ref ' s signature is pub fn to_object_ref(self) -> Result<ObjectRef, anyhow::Error>, so this need to be into_iter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough!

@huitseeker huitseeker added the test label May 4, 2022
@patrickkuo patrickkuo force-pushed the pat/rpc_server_test branch from 1144fe0 to 64d3047 Compare May 4, 2022 09:26
@patrickkuo patrickkuo force-pushed the pat/rpc_server_test branch from 64d3047 to 0af011c Compare May 4, 2022 20:00
@patrickkuo patrickkuo merged commit 32fbb45 into main May 4, 2022
@patrickkuo patrickkuo deleted the pat/rpc_server_test branch May 4, 2022 20:24
longbowlu pushed a commit that referenced this pull request May 12, 2022
punwai pushed a commit that referenced this pull request Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RPC gateway] - Add test for each of the RPC endpoint [RPC Server] Add unit tests for each endpoint
3 participants