Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit fc941f0

Browse files
Fixing test base class
1 parent f51f0f7 commit fc941f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tests/IntegrationTests/BasePlatformIntegrationTest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ protected void InitializePlatform(NPath repoPath, NPath environmentPath, bool en
3131
{
3232
var applicationDataPath = Environment.GetSpecialFolder(System.Environment.SpecialFolder.LocalApplicationData).ToNPath();
3333
var installDetails = new PortableGitInstallDetails(applicationDataPath, true);
34-
var gitInstallTask = new PortableGitInstallTask(CancellationToken.None, Environment, installDetails);
34+
35+
var zipArchivesPath = TestBasePath.Combine("ZipArchives").CreateDirectory();
36+
var gitArchivePath = AssemblyResources.ToFile(ResourceType.Platform, "git.zip", zipArchivesPath, Environment);
37+
var gitLfsArchivePath = AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip", zipArchivesPath, Environment);
38+
39+
var gitInstallTask = new PortableGitInstallTask(CancellationToken.None, Environment, gitArchivePath, gitLfsArchivePath, installDetails);
3540

3641
var installPath = gitInstallTask.Start().Result;
3742
Environment.GitExecutablePath = installPath;

0 commit comments

Comments
 (0)