File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ManagedCode.Database.Tests/TestContainers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ public CosmosTestContainer()
42
42
. WithPortBinding ( 10252 , 10252 )
43
43
. WithPortBinding ( 10253 , 10253 )
44
44
. WithPortBinding ( 10254 , 10254 )
45
- . WithEnvironment ( "AZURE_COSMOS_EMULATOR_PARTITION_COUNT" , "6" )
45
+ . WithPortBinding ( 8081 , 8081 )
46
+ . WithEnvironment ( "AZURE_COSMOS_EMULATOR_PARTITION_COUNT" , "1" )
46
47
. WithEnvironment ( "AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE" , "127.0.0.1" )
47
48
. WithEnvironment ( "AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE" , "false" )
48
49
. WithCleanUp ( false )
@@ -104,7 +105,7 @@ public async Task InitializeAsync()
104
105
_database = new CosmosDatabase ( new CosmosOptions
105
106
{
106
107
ConnectionString =
107
- $ "AccountEndpoint=https://localhost:8081 ;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
108
+ $ "AccountEndpoint=https://localhost:{ publicPort } / ;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
108
109
DatabaseName = "database" ,
109
110
CollectionName = $ "testContainer",
110
111
AllowTableCreation = true ,
You can’t perform that action at this time.
0 commit comments