File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
test/WebJobs.Script.Tests.Integration/CosmosDB Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public override async Task InitializeAsync()
7272 public override async Task DisposeAsync ( )
7373 {
7474 await base . DisposeAsync ( ) ;
75+ await DeleteDatabase ( ) ;
7576 CosmosClient ? . Dispose ( ) ;
7677 }
7778
@@ -97,6 +98,12 @@ public async Task<bool> CreateContainers()
9798 return collectionsCreated ;
9899 }
99100
101+ public async Task DeleteDatabase ( )
102+ {
103+ Database database = CosmosClient . GetDatabase ( "ItemDb" ) ;
104+ await database . DeleteAsync ( ) ;
105+ }
106+
100107 public async Task DeleteContainers ( )
101108 {
102109 Database database = CosmosClient . GetDatabase ( "ItemDb" ) ;
Original file line number Diff line number Diff line change 55using System . Threading . Tasks ;
66using Xunit ;
77
8+ // Add this outside the namespace or at the top of the file
9+ [ CollectionDefinition ( "CosmosDBNodeEndToEndTests" , DisableParallelization = true ) ]
10+ public class CosmosDBNodeEndToEndTestsCollection { }
11+
812namespace Microsoft . Azure . WebJobs . Script . Tests . CosmosDB
913{
14+ [ Collection ( "CosmosDBNodeEndToEndTests" ) ]
1015 public class CosmosDBNodeEndToEndTests :
1116 CosmosDBEndToEndTestsBase < CosmosDBNodeEndToEndTests . TestFixture >
1217 {
You can’t perform that action at this time.
0 commit comments