Skip to content

Commit

Permalink
CI fix cosmos throughput for demo test
Browse files Browse the repository at this point in the history
  • Loading branch information
chullybun committed Oct 27, 2023
1 parent da0e61f commit 5ada49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/Demo/Beef.Demo.Test/RobotTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static async Task CosmosOneTimeSetUp(DemoCosmosDb cosmosDb)
Id = "Items",
PartitionKeyPath = "/_partitionKey",
UniqueKeyPolicy = new Cosmos.UniqueKeyPolicy { UniqueKeys = { new Cosmos.UniqueKey { Paths = { "/serialNo" } } } }
}, 400).ConfigureAwait(false);
}).ConfigureAwait(false);

var jdr = JsonDataReader.ParseYaml<FixtureSetUp>("Data.yaml");
await cosmosDb.Items.ImportBatchAsync(jdr, "Robot").ConfigureAwait(false);
Expand All @@ -53,7 +53,7 @@ public static async Task CosmosOneTimeSetUp(DemoCosmosDb cosmosDb)
Id = "RefData",
PartitionKeyPath = "/_partitionKey",
UniqueKeyPolicy = new Cosmos.UniqueKeyPolicy { UniqueKeys = { new Cosmos.UniqueKey { Paths = { "/type", "/value/code" } } } }
}, 400).ConfigureAwait(false);
}).ConfigureAwait(false);

jdr = JsonDataReader.ParseYaml<FixtureSetUp>("RefData.yaml", new JsonDataReaderArgs(new CoreEx.Text.Json.ReferenceDataContentJsonSerializer()));
await cosmosDb.ImportValueBatchAsync<Business.Data.Model.PowerSource>("RefData", jdr).ConfigureAwait(false);
Expand Down

0 comments on commit 5ada49c

Please sign in to comment.