Skip to content

Commit e3ef74e

Browse files
authored
Make Cosmos tests faster by not re-initializing the database between each NonShared test (#35841)
1 parent 32331f2 commit e3ef74e

File tree

120 files changed

+301
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+301
-579
lines changed

Diff for: .github/workflows/TestCosmos.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Start Cosmos Emulator
1818
run: |
1919
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
20-
Start-CosmosDbEmulator -Timeout 360
20+
Start-CosmosDbEmulator -Timeout 540 -NoUI -NoTelemetry -NoFirewall -EnablePreview
2121
2222
- name: Checkout
2323
uses: actions/checkout@v4

Diff for: src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Text;
99
using Microsoft.EntityFrameworkCore.Cosmos.Diagnostics.Internal;
1010
using Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal;
11-
using Microsoft.EntityFrameworkCore.Cosmos.Internal;
1211
using Microsoft.EntityFrameworkCore.Cosmos.Metadata.Internal;
1312
using Microsoft.EntityFrameworkCore.Internal;
1413
using Newtonsoft.Json;

0 commit comments

Comments
 (0)