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 {
260
260
#[ derive( Deserialize ) ]
261
261
#[ serde( rename_all = "camelCase" ) ]
262
262
pub struct Keys {
263
- pub public : String ,
264
- pub private : String ,
263
+ pub public : Option < String > ,
264
+ pub private : Option < String > ,
265
265
}
266
266
267
267
/// Version of a MeiliSearch server.
@@ -289,8 +289,6 @@ mod tests {
289
289
#[ async_test]
290
290
async fn test_get_keys ( ) {
291
291
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 ( ) ;
295
293
}
296
294
}
Original file line number Diff line number Diff line change @@ -720,11 +720,10 @@ mod tests {
720
720
let client = Client :: new ( "http://localhost:7700" , "masterKey" ) ;
721
721
let uid = "test_get_all_updates_no_docs" ;
722
722
723
- let index = client. create_index ( uid, None ) . await . unwrap ( ) ;
723
+ let index = client. get_or_create ( uid) . await . unwrap ( ) ;
724
724
let status = index. get_all_updates ( ) . await . unwrap ( ) ;
725
+ client. delete_index ( uid) . await . unwrap ( ) ;
725
726
726
727
assert_eq ! ( status. len( ) , 0 ) ;
727
-
728
- client. delete_index ( uid) . await . unwrap ( ) ;
729
728
}
730
729
}
You can’t perform that action at this time.
0 commit comments