diff --git a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs index 2eec1938c3..3eef3c201f 100644 --- a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs @@ -126,6 +126,8 @@ namespace Umbraco.Cms.Tests.Integration.Testing } } + _localDb.StopInstance(InstanceName); + foreach (string file in Directory.EnumerateFiles(s_filesPath)) { if (file.EndsWith(".mdf") == false && file.EndsWith(".ldf") == false)