Skip to content

Commit

Permalink
Fix S4056 (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
gintsk authored Feb 4, 2024
1 parent 34c0d58 commit 876ad55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/Polly.Specs/Helpers/Bulkhead/AnnotatedOutputHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Polly.Specs.Helpers.Bulkhead;
using System.Globalization;

namespace Polly.Specs.Helpers.Bulkhead;

public class AnnotatedOutputHelper : ITestOutputHelper
{
Expand Down Expand Up @@ -36,7 +38,7 @@ public void Flush()
var toOutput = _items.Select(kvp => kvp.Value).OrderBy(i => i.Position).Reverse();
foreach (var item in toOutput)
{
_innerOutputHelper.WriteLine(item.TimeStamp.ToString("o") + ": " + item.Format, item.Args);
_innerOutputHelper.WriteLine(item.TimeStamp.ToString("o", CultureInfo.InvariantCulture) + ": " + item.Format, item.Args);
}

_items.Clear();
Expand Down
2 changes: 1 addition & 1 deletion test/Polly.Specs/Polly.Specs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Include>[Polly]*</Include>
<IncludePollyUsings>true</IncludePollyUsings>
<NoWarn>$(NoWarn);S103;S104;IDE0011;SA1600;SA1204;CA2008;CA1806;CA2201;</NoWarn>
<NoWarn>$(NoWarn);S3878;CA1030;S3717;SA1129;S1402;SA1649;SA1402;S4056;CA1031</NoWarn>
<NoWarn>$(NoWarn);S3878;CA1030;S3717;SA1129;S1402;SA1649;SA1402;CA1031</NoWarn>
<NoWarn>$(NoWarn);S2184;</NoWarn>
</PropertyGroup>

Expand Down

0 comments on commit 876ad55

Please sign in to comment.