Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix not disposed document store

  • Loading branch information...
commit fdc638aaef4c04c9af91bb94743cb7f78d079c09 1 parent 0d81c88
@fitzchak fitzchak authored
View
5 Raven.StressTests/Tenants/ConcurrentlyOpenedTenantsUsingEsent.cs
@@ -23,11 +23,10 @@ protected override void ModifyConfiguration(RavenConfiguration ravenConfiguratio
[Fact]
public void CanConcurrentlyPutDocsToDifferentTenants()
{
- var count = 1000;
+ const int count = 1000;
using (GetNewServer())
+ using (var documentStore = new DocumentStore { Url = "http://localhost:8079" }.Initialize())
{
- var documentStore = new DocumentStore { Url = "http://localhost:8079" }.Initialize();
-
for (int i = 1; i <= count; i++)
{
var tenantName = "Tenant " + i;
Please sign in to comment.
Something went wrong with that request. Please try again.