diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-02 19:04:26 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-02 19:04:26 -0500 |
| commit | a172390967d21b2f95cbb4ceb88de410b1f044c5 (patch) | |
| tree | 3605669c61c06ad053d7b95a94a3d7aba111bd2f | |
| parent | 400108c9a4a88edb6738309e0b83c9299ca36072 (diff) | |
| download | slskd-a172390967d21b2f95cbb4ceb88de410b1f044c5.tar.gz | |
fix tests
| -rw-r--r-- | tests/slskd.Tests.Unit/Files/FileServiceTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs index d6c30316..05f967da 100644 --- a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs +++ b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs @@ -34,7 +34,7 @@ namespace slskd.Tests.Unit.Files [Fact] public async Task ListContentsAsync_Throws_ArgumentException_Given_Relative_Path() { - var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: "../")); + var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: "../")); Assert.NotNull(ex); Assert.IsType<ArgumentException>(ex); @@ -53,7 +53,7 @@ namespace slskd.Tests.Unit.Files } }); - var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "foo"))); + var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "foo"))); Assert.NotNull(ex); Assert.IsType<UnauthorizedException>(ex); @@ -71,7 +71,7 @@ namespace slskd.Tests.Unit.Files } }); - var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "downloads", "foo"))); + var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "downloads", "foo"))); Assert.NotNull(ex); Assert.IsType<NotFoundException>(ex); |
