Skip to content

Commit

Permalink
shorten the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Oct 15, 2021
1 parent f40247e commit 12359d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,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 12359d9

Please sign in to comment.