mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-10-07 22:03:14 -04:00
test: eliminate pathological path fixture
This commit is contained in:
2 files changed
+1
-17
No files matched your search
@@ -63,20 +63,4 @@ public class PathHelperExtraTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolveUniquePath_ThrowsAfterManyAttempts()
|
||||
{
|
||||
// Arrange
|
||||
var basePath = Path.Combine(_testPath, "a.mp3");
|
||||
// Create files a.mp3 through a (10010).mp3 to force exhaustion
|
||||
File.WriteAllText(basePath, "x");
|
||||
for (int i = 1; i <= 10005; i++)
|
||||
{
|
||||
var p = Path.Combine(_testPath, $"a ({i}).mp3");
|
||||
File.WriteAllText(p, "x");
|
||||
}
|
||||
|
||||
// Act & Assert
|
||||
Assert.Throws<IOException>(() => PathHelper.ResolveUniquePath(basePath));
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"$schema": "https://xunit.net/schema/v2.8/xunit.runner.schema.json",
|
||||
"maxParallelThreads": 6
|
||||
"maxParallelThreads": 8
|
||||
}
|
||||
Reference in new issue
Block a user