Skip to content

Commit

Permalink
Fix this test
Browse files Browse the repository at this point in the history
We require the full path to the file where the metadata
will be written to. Let's not make guesses about
whether it's a file path or a directory path.
  • Loading branch information
alanmcgovern committed Nov 14, 2020
1 parent 777926f commit 6683e91
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ public async Task SendMetadata_ToFile_RealFileExists ()
[Test]
public async Task SendMetadata_ToFolder ()
{
await Setup (true, AppDomain.CurrentDomain.BaseDirectory);
await SendMetadataCore (Path.Combine (AppDomain.CurrentDomain.BaseDirectory,
$"{rig.Torrent.InfoHash.ToHex ()}.torrent")
await Setup (true, Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "test"));
await SendMetadataCore (Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "test")
, new HaveNoneMessage ());
}

Expand Down

0 comments on commit 6683e91

Please sign in to comment.