Skip to content

Commit 8f3e30d

Browse files
committed
test again
1 parent af0fbe6 commit 8f3e30d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/WebJobs.Script.Tests.Integration/CosmosDB/CosmosDBEndtoEndTestFixture.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

test/WebJobs.Script.Tests.Integration/CosmosDB/CosmosDBNodeEndToEndTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
using System.Threading.Tasks;
66
using 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+
812
namespace Microsoft.Azure.WebJobs.Script.Tests.CosmosDB
913
{
14+
[Collection("CosmosDBNodeEndToEndTests")]
1015
public class CosmosDBNodeEndToEndTests :
1116
CosmosDBEndToEndTestsBase<CosmosDBNodeEndToEndTests.TestFixture>
1217
{

0 commit comments

Comments
 (0)