Skip to content

Commit

Permalink
test(TestDownloadFolder): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Jan 24, 2024
1 parent 7666c2a commit 376299e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PollinationSDK.Tests/Api/UtilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public void TestGetLatestVersion()
public void TestDownloadFolder()
{
var api = new ArtifactsApi();
// var relativeFolderPath = new List<string> { "testSubDir" };
var relativeFolderPath = null;
var relativeFolderPath = new List<string> { "testSubDir" };
relativeFolderPath = null;
var projOwner = "ladybug-tools";
var projName = "demo-project";


var pathes = Helper.DownloadArtifactFolderAsync(api, projOwner, projName, relativeFolderPath, "").GetAwaiter().GetResult();
var pathes = Helper.GetAllFilesAsync(api, projOwner, projName, relativeFolderPath, "").GetAwaiter().GetResult();
Assert.IsTrue(pathes != null);
Assert.IsTrue(pathes.Count() > 20);
}
Expand Down

0 comments on commit 376299e

Please sign in to comment.