-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[release/6.0] Don't create multiple large files at the same time #63032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
04af7ae
8d0a914
d02bc6f
d525882
2bc8aa5
11e9f38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,64 @@ | ||||||
| // Licensed to the .NET Foundation under one or more agreements. | ||||||
| // The .NET Foundation licenses this file to you under the MIT license. | ||||||
|
|
||||||
| using System.IO.Tests; | ||||||
| using System.Threading.Tasks; | ||||||
| using Xunit; | ||||||
|
|
||||||
| namespace System.IO.FileSystem.Tests | ||||||
| { | ||||||
| [OuterLoop] | ||||||
| [ActiveIssue("https://github.com/dotnet/runtime/issues/45954", TestPlatforms.Browser)] | ||||||
| [Collection("NoParallelTests")] // don't create multiple large files at the same time | ||||||
| public class LargeFileTests : FileSystemTest | ||||||
| { | ||||||
| [Fact] | ||||||
| public async Task ReadAllBytesOverLimit() | ||||||
| { | ||||||
| using FileStream fs = new (GetTestFilePath(), FileMode.Create, FileAccess.Write, FileShare.Read, 4096, FileOptions.DeleteOnClose); | ||||||
|
|
||||||
| foreach (long lengthOverLimit in new long[] { Array.MaxLength + 1L, int.MaxValue + 1L }) | ||||||
|
||||||
| foreach (long lengthOverLimit in new long[] { Array.MaxLength + 1L, int.MaxValue + 1L }) | |
| foreach (long lengthOverLimit in new long[] { int.MaxValue + 1L }) |
jozkee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't actually need this since we already have the same one here which you can include instead: https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/Common/tests/System/Xml/DisableParallelization.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah looks like it is already that way in main, you'll need to include the file in the .csproj so it works:
runtime/src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj
Line 218 in 1c09d36
| <Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelization.cs" Link="Common\TestUtilities\System\DisableParallelization.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File src\libraries\Common\tests\TestUtilities\System\DisableParallelization.cs doesn't exists in release/6.0.
I added the class here because that's how we were doing it prior to #62132.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it was in a different path in release/6.0 (see the linked file in my first comment), but this is just a cosmetic issue so fine if we keep what you have :)
Uh oh!
There was an error while loading. Please reload this page.