Skip to content

Commit

Permalink
moar nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Feb 27, 2024
1 parent efcd8ab commit 95fa051
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/StackExchange.Redis.Tests/ConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.IO.Pipelines;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Net.Sockets;
using System.Reflection;
using System.Security.Authentication;
Expand Down Expand Up @@ -35,7 +34,7 @@ public void ExpectedFields()
// this is a simple but pragmatic "have you considered?" check

var fields = Array.ConvertAll(typeof(ConfigurationOptions).GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance),
x => Regex.Replace(x.Name, """<(\w+)>k__BackingField""", "$1"));
x => Regex.Replace(x.Name, """^<(\w+)>k__BackingField$""", "$1"));
Array.Sort(fields);
Assert.Equal(new[] {
"abortOnConnectFail", "allowAdmin", "asyncTimeout", "backlogPolicy", "BeforeSocketConnect",
Expand Down

0 comments on commit 95fa051

Please sign in to comment.