Permalink
Browse files

Fix not disposed document store

  • Loading branch information...
fitzchak committed Apr 3, 2012
1 parent 0d81c88 commit fdc638aaef4c04c9af91bb94743cb7f78d079c09
Showing with 2 additions and 3 deletions.
  1. +2 −3 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;

0 comments on commit fdc638a

Please sign in to comment.