Skip to content

Commit

Permalink
Update AdoScopeSqliteTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gentoorax committed Nov 28, 2024
1 parent ea3c4b0 commit adfe0b6
Showing 1 changed file with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,33 +278,34 @@ public void SqliteAdoScopeTransactionNestedTest()

#endregion

[AssemblyCleanup]
public static void AssemblyCleanup()
{
if (File.Exists("mydatabase.db"))
{
File.Delete("mydatabase.db");
}

if (File.Exists("mydatabase2.db"))
{
File.Delete("mydatabase2.db");
}

if (File.Exists("mydatabase3.db"))
{
File.Delete("mydatabase3.db");
}

if (File.Exists("mydatabase4.db"))
{
File.Delete("mydatabase4.db");
}

if (File.Exists("mydatabase5.db"))
{
File.Delete("mydatabase5.db");
}
}
// To be re-instated once sqlite locking issue is resolved
//[AssemblyCleanup]
//public static void AssemblyCleanup()
//{
// if (File.Exists("mydatabase.db"))
// {
// File.Delete("mydatabase.db");
// }

// if (File.Exists("mydatabase2.db"))
// {
// File.Delete("mydatabase2.db");
// }

// if (File.Exists("mydatabase3.db"))
// {
// File.Delete("mydatabase3.db");
// }

// if (File.Exists("mydatabase4.db"))
// {
// File.Delete("mydatabase4.db");
// }

// if (File.Exists("mydatabase5.db"))
// {
// File.Delete("mydatabase5.db");
// }
//}
}
}

0 comments on commit adfe0b6

Please # to comment.