diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-03 23:28:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-03 23:28:23 -0500 |
| commit | fc11d5d691ac008e1507f25ebb5ce3ac7a5cfc60 (patch) | |
| tree | 3de54f5e8b4001253db53bd20dc153ebe49b271c /tests/slskd.Tests.Unit | |
| parent | 1915a370c1bd11aee8849574e116b353a0b7153f (diff) | |
| parent | a97a425c7121f19c1613106c0bab7a1dcf616f92 (diff) | |
| download | slskd-fc11d5d691ac008e1507f25ebb5ce3ac7a5cfc60.tar.gz | |
Merge branch 'master' into upload-queue-fixes
Diffstat (limited to 'tests/slskd.Tests.Unit')
| -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); |
