diff --git a/gxtdb-rs/tests/lib.rs b/gxtdb-rs/tests/lib.rs index 09cc947..eb25db3 100644 --- a/gxtdb-rs/tests/lib.rs +++ b/gxtdb-rs/tests/lib.rs @@ -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); diff --git a/gxtdb-rs/tests/mock.rs b/gxtdb-rs/tests/mock.rs index da73bca..e49c427 100644 --- a/gxtdb-rs/tests/mock.rs +++ b/gxtdb-rs/tests/mock.rs @@ -12,15 +12,7 @@ impl GrpcApi for ServerMock { &self, _request: tonic::Request, ) -> Result, 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())) } }