File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
sdk/cosmos/azure_data_cosmos/tests/framework Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,7 @@ impl TestAccount {
147
147
// We COULD choose not to delete them and instead validate that they were deleted, but this is what I've gone with for now.
148
148
for id in ids {
149
149
println ! ( "Deleting left-over database: {}" , & id) ;
150
- cosmos_client
151
- . database_client ( & id)
152
- . delete ( None )
153
- . await ?
154
- . success ( )
155
- . await ?;
150
+ cosmos_client. database_client ( & id) . delete ( None ) . await ?;
156
151
}
157
152
Ok ( ( ) )
158
153
}
Original file line number Diff line number Diff line change @@ -66,12 +66,7 @@ pub async fn create_database(
66
66
) -> azure_core:: Result < DatabaseClient > {
67
67
// The TestAccount has a unique context_id that includes the test name.
68
68
let db_name = account. unique_db ( "TestData" ) ;
69
- let response = match cosmos_client
70
- . create_database ( & db_name, None )
71
- . await ?
72
- . success ( )
73
- . await
74
- {
69
+ let response = match cosmos_client. create_database ( & db_name, None ) . await {
75
70
// The database creation was successful.
76
71
Ok ( props) => props,
77
72
Err ( e) if e. http_status ( ) == Some ( StatusCode :: Conflict ) => {
You can’t perform that action at this time.
0 commit comments