From: Stephen Toub Date: Mon, 15 Jul 2019 23:32:58 +0000 (-0400) Subject: Add a retry to an EventLog test on Win7 (dotnet/corefx#39508) X-Git-Tag: submit/tizen/20210909.063632~11031^2~930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b641835b269c802077f93dcf9e7a0718d845e230;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add a retry to an EventLog test on Win7 (dotnet/corefx#39508) Commit migrated from https://github.com/dotnet/corefx/commit/c953201a9918a5b699e6d23cd48c863975b9b14e --- diff --git a/src/libraries/System.Diagnostics.EventLog/tests/EventLogTests/EventLogTests.cs b/src/libraries/System.Diagnostics.EventLog/tests/EventLogTests/EventLogTests.cs index 51795a4..37ea855 100644 --- a/src/libraries/System.Diagnostics.EventLog/tests/EventLogTests/EventLogTests.cs +++ b/src/libraries/System.Diagnostics.EventLog/tests/EventLogTests/EventLogTests.cs @@ -356,7 +356,7 @@ namespace System.Diagnostics.Tests foreach (var eventLog in EventLog.GetEventLogs()) { // Accessing eventlog properties should not throw. - Assert.True(eventLog.Entries.Count >= 0); + Assert.True(Helpers.RetryOnWin7(() => eventLog.Entries.Count) >= 0); } } }