Skip to content

Commit 918ba27

Browse files
committed
refactor
1 parent ce1fd58 commit 918ba27

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Servers/Kestrel/test/Interop.FunctionalTests/H2SpecTests.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ public static TheoryData<H2SpecTestCase> H2SpecTestCases
6161
get
6262
{
6363
var dataset = new TheoryData<H2SpecTestCase>();
64-
var toSkip = new string[] { "http2/6.9.2/2" };
64+
// { Test name, Skip Reason }
65+
var toSkip = new Dictionary<string, string>
66+
{
67+
{ "http2/6.9.2/2", "https://github.com/dotnet/aspnetcore/issues/47452" }
68+
};
6569

6670
var testCases = H2SpecCommands.EnumerateTestCases();
6771

@@ -79,9 +83,9 @@ public static TheoryData<H2SpecTestCase> H2SpecTestCases
7983
foreach (var testcase in testCases)
8084
{
8185
string skip = null;
82-
if (toSkip.Contains(testcase.Item1))
86+
if (toSkip.TryGetValue(testcase.Item1, out var skipReason))
8387
{
84-
skip = "https://github.com/dotnet/aspnetcore/issues/47452";
88+
skip = skipReason;
8589
}
8690

8791
dataset.Add(new H2SpecTestCase

0 commit comments

Comments
 (0)