Skip to content

Commit 6fb7837

Browse files
authored
fix build failure
1 parent fa81d1b commit 6fb7837

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

sdk/cosmos/azure_data_cosmos/tests/framework/test_account.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,7 @@ impl TestAccount {
147147
// We COULD choose not to delete them and instead validate that they were deleted, but this is what I've gone with for now.
148148
for id in ids {
149149
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?;
156151
}
157152
Ok(())
158153
}

sdk/cosmos/azure_data_cosmos/tests/framework/test_data/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ pub async fn create_database(
6666
) -> azure_core::Result<DatabaseClient> {
6767
// The TestAccount has a unique context_id that includes the test name.
6868
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 {
7570
// The database creation was successful.
7671
Ok(props) => props,
7772
Err(e) if e.http_status() == Some(StatusCode::Conflict) => {

0 commit comments

Comments
 (0)