test: eliminate pathological path fixture

This commit is contained in:
joshpatra committed 2026-08-03 16:17:28 -04:00
1 parent f1f3bcd189
commit 608c0d9627
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 -1
View File
@@ -1,4 +1,4 @@
{
"$schema": "https://xunit.net/schema/v2.8/xunit.runner.schema.json",
"maxParallelThreads": 6
"maxParallelThreads": 8
}