Skip to content

Commit

Permalink
Wait with deleting log created by integration test until last
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Oct 4, 2024
1 parent 8a0c15f commit f48abf2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/Elmah.Io.Client.Test/IntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ public void Test()
var result = api.Logs.Diagnose(created.Id);
Assert.That(result.Count, Is.EqualTo(0));

// Delete
api.Messages.DeleteAll(created.Id, new Search { Query = "*" });
Thread.Sleep(2000);

api.Logs.Delete(created.Id);
Thread.Sleep(2000);
Assert.That(api.Logs.GetAll().Count == logs.Count);

#endregion

#region SourceMaps
Expand Down Expand Up @@ -237,6 +229,11 @@ public void Test()
});

#endregion

// Delete
api.Logs.Delete(log.Id);
Thread.Sleep(2000);
Assert.That(api.Logs.GetAll().Count == logs.Count);
}
}
}

0 comments on commit f48abf2

Please sign in to comment.