Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
Fix test expected declaration
Browse files Browse the repository at this point in the history
- uses default value

Co-authored-by: Isabela Goes <[email protected]>
  • Loading branch information
naomijub and belagoesr committed May 12, 2023
1 parent fccbae2 commit 46e0ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions gxtdb-rs/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ pub mod mock;

#[tokio::test]
async fn test_status_response() {
let expected = gxtdb_rs::api::StatusResponse {
version: "0".to_string(),
index_version: 1,
kv_store: "kv".to_string(),
estimate_num_keys: 2,
size: 2,
revision: None,
consumer_state: None,
};
let expected = gxtdb_rs::api::StatusResponse::default();
let mut client = mock::client().await;
let status = client.status().await.unwrap();
assert_eq!(status.into_inner(), expected);
Expand Down
10 changes: 1 addition & 9 deletions gxtdb-rs/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ impl GrpcApi for ServerMock {
&self,
_request: tonic::Request<api::Empty>,
) -> Result<tonic::Response<api::StatusResponse>, tonic::Status> {
Ok(tonic::Response::new(api::StatusResponse {
version: "0".to_string(),
index_version: 1,
kv_store: "kv".to_string(),
estimate_num_keys: 2,
size: 2,
revision: None,
consumer_state: None,
}))
Ok(tonic::Response::new(api::StatusResponse::default()))
}
}

Expand Down

0 comments on commit 46e0ec5

Please sign in to comment.