Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,13 @@ public async Task CancelTokenOn_Client_ReadWriteCancelledToken_Throws_OperationC
[SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets")]
public async Task TwoServerInstances_OnceDisposed_Throws()
{
if ((Options & PipeOptions.Asynchronous) == 0)
{
// Dispose'ing of pipes with active operations in flight isn't a supported use case.
// It works with overlapped I/O but may not when we simulate the asynchrony.
return;
}

string pipeName = GetUniquePipeName();
NamedPipeServerStream server1 = CreateServerStream(pipeName, 2);
using NamedPipeServerStream server2 = CreateServerStream(pipeName, 2);
Expand Down