Skip to content

Commit

Permalink
Enhance test arrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
richardrandak committed Feb 18, 2022
1 parent 2a17608 commit 38fb79d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion FortnoxSDK.Tests/TestArrangement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ public static async Task ArrangeSandbox(TestContext context)
{
try
{
// Delete hanging entities from failed execution
await FortnoxClient.CostCenterConnector.DeleteAsync("TMP");
}
catch
{
// ignored
}

try
{
await FortnoxClient.WayOfDeliveryConnector.DeleteAsync("TST");
}
catch
{
// Ignore
}
Expand Down

0 comments on commit 38fb79d

Please sign in to comment.