Skip to content

Commit

Permalink
disable flaky ReadAllBytes_NonSeekableFileStream_InWindows (#60471)
Browse files Browse the repository at this point in the history
* shorten the timeout

* try to reorder the operations

* Revert "try to reorder the operations"

This reverts commit 413ee9b.

* disable the test for now
  • Loading branch information
adamsitnik committed Oct 15, 2021
1 parent 22cb0e5 commit 53590db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public void ProcFs_NotEmpty(string path)

[Fact]
[PlatformSpecific(TestPlatforms.Windows)] // DOS device paths (\\.\ and \\?\) are a Windows concept
[ActiveIssue("https://github.com/dotnet/runtime/issues/60427")]
public async Task ReadAllBytes_NonSeekableFileStream_InWindows()
{
string pipeName = FileSystemTest.GetNamedPipeServerStreamName();
Expand All @@ -190,7 +191,7 @@ public async Task ReadAllBytes_NonSeekableFileStream_InWindows()
{
Task writingServerTask = WaitConnectionAndWritePipeStreamAsync(namedPipeWriterStream, contentBytes, cts.Token);
Task<byte[]> readTask = Task.Run(() => File.ReadAllBytes(pipePath), cts.Token);
cts.CancelAfter(TimeSpan.FromSeconds(50));
cts.CancelAfter(TimeSpan.FromSeconds(3));

await writingServerTask;
byte[] readBytes = await readTask;
Expand Down

0 comments on commit 53590db

Please sign in to comment.