Skip to content

Commit

Permalink
Delete tenants output created as part of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzchak Yitzchaki committed Apr 4, 2012
1 parent 5a6d467 commit f7109c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -6,7 +6,6 @@
extern alias client;
using client::Raven.Client.Authorization;
using client::Raven.Bundles.Authorization.Model;

using Raven.Bundles.Tests.Versioning;
using Raven.Client.Extensions;
using Xunit;
Expand Down
9 changes: 7 additions & 2 deletions Raven.Tests/RavenTest.cs
Expand Up @@ -20,14 +20,13 @@
using Raven.Database.Server;
using Raven.Database.Util;
using Raven.Json.Linq;
using Raven.Munin;
using Raven.Server;
using Raven.Storage.Managed;
using Raven.Tests.Document;

namespace Raven.Tests
{
public class RavenTest : WithNLog
public class RavenTest : WithNLog, IDisposable
{
protected const string DbDirectory = @".\TestDb\";
protected const string DbName = DbDirectory + @"DocDb.esb";
Expand Down Expand Up @@ -236,5 +235,11 @@ public double Timer(Action action)
Console.WriteLine("Time take (ms)- " + timeTaken.TotalMilliseconds);
return timeTaken.TotalMilliseconds;
}

public void Dispose()
{
// Delete tenants created using the EnsureDatabaseExists method.
IOExtensions.DeleteDirectory("Tenants");
}
}
}

0 comments on commit f7109c6

Please sign in to comment.