Skip to content

Commit

Permalink
Mock git ff (#4604) (#4623)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Duplenskikh <[email protected]>
  • Loading branch information
kirill-ivlev and ivanduplenskikh authored Jan 31, 2024
1 parent dc1f0e8 commit 65820e6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ private Tuple<Mock<ArgUtilInstanced>, MockAgentTaskPluginExecutionContext> setup
Mock<ArgUtilInstanced> argUtilInstanced = new Mock<ArgUtilInstanced>();
argUtilInstanced.CallBase = true;
argUtilInstanced.Setup(x => x.File(Path.Combine("agenthomedirectory", "externals", "git", "cmd", $"git.exe"), "gitPath")).Callback(() => { });
argUtilInstanced.Setup(x => x.File(Path.Combine("agenthomedirectory", "externals", "ff_git", "cmd", $"git.exe"), "gitPath")).Callback(() => { });
argUtilInstanced.Setup(x => x.Directory("agentworkfolder", "agent.workfolder")).Callback(() => { });
var context = new MockAgentTaskPluginExecutionContext(hostContext.GetTrace());
context.Variables.Add("agent.homedirectory", "agenthomedirectory");
Expand Down

0 comments on commit 65820e6

Please sign in to comment.