Skip to content

Commit

Permalink
only SqlInstance.Cleanup on BuildServer (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 2, 2022
1 parent 9122451 commit ed90819
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
using DiffEngine;
using LocalDb;

public sealed class LocalDbFixture : IDisposable
Expand All @@ -19,6 +20,9 @@ public LocalDbFixture()

public void Dispose()
{
SqlInstance?.Cleanup();
if (BuildServerDetector.Detected)
{
SqlInstance?.Cleanup();
}
}
}

0 comments on commit ed90819

Please sign in to comment.