Skip to content

Commit 66d1924

Browse files
authored
Quarantine TestUnixDomainSocketWithUrl (#28069)
- see #24608 - add guards with detailed messages to help debug future failures
1 parent 4af7a46 commit 66d1924

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Servers/Kestrel/test/FunctionalTests/UnixDomainSocketsTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ async Task EchoServer(ConnectionContext connection)
129129

130130
#if LIBUV
131131
[OSSkipCondition(OperatingSystems.Windows, SkipReason = "Libuv does not support unix domain sockets on Windows.")]
132+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/28067")]
132133
#else
133134
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10_RS4)]
134135
#endif
@@ -186,7 +187,9 @@ public async Task TestUnixDomainSocketWithUrl()
186187

187188
var httpResponse = Encoding.ASCII.GetString(readBuffer, 0, read);
188189
int httpStatusStart = httpResponse.IndexOf(' ') + 1;
190+
Assert.False(httpStatusStart == 0, $"Space not found in '{httpResponse}'.");
189191
int httpStatusEnd = httpResponse.IndexOf(' ', httpStatusStart);
192+
Assert.False(httpStatusEnd == -1, $"Second space not found in '{httpResponse}'.");
190193

191194
var httpStatus = int.Parse(httpResponse.Substring(httpStatusStart, httpStatusEnd - httpStatusStart), CultureInfo.InvariantCulture);
192195
Assert.Equal(httpStatus, StatusCodes.Status200OK);

0 commit comments

Comments
 (0)