File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ pub struct ClientStats {
260260#[ derive( Deserialize ) ]
261261#[ serde( rename_all = "camelCase" ) ]
262262pub struct Keys {
263- pub public : String ,
264- pub private : String ,
263+ pub public : Option < String > ,
264+ pub private : Option < String > ,
265265}
266266
267267/// Version of a MeiliSearch server.
@@ -289,8 +289,6 @@ mod tests {
289289 #[ async_test]
290290 async fn test_get_keys ( ) {
291291 let client = Client :: new ( "http://localhost:7700" , "masterKey" ) ;
292-
293- let result = client. get_keys ( ) . await ;
294- assert_eq ! ( result. is_err( ) , false ) ;
292+ client. get_keys ( ) . await . unwrap ( ) ;
295293 }
296294}
Original file line number Diff line number Diff line change @@ -720,11 +720,10 @@ mod tests {
720720 let client = Client :: new ( "http://localhost:7700" , "masterKey" ) ;
721721 let uid = "test_get_all_updates_no_docs" ;
722722
723- let index = client. create_index ( uid, None ) . await . unwrap ( ) ;
723+ let index = client. get_or_create ( uid) . await . unwrap ( ) ;
724724 let status = index. get_all_updates ( ) . await . unwrap ( ) ;
725+ client. delete_index ( uid) . await . unwrap ( ) ;
725726
726727 assert_eq ! ( status. len( ) , 0 ) ;
727-
728- client. delete_index ( uid) . await . unwrap ( ) ;
729728 }
730729}
You can’t perform that action at this time.
0 commit comments