Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 7301a5f

Browse files
committed
make tests pass
1 parent 2fd8ae4 commit 7301a5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UnitTests/GitHub.Exports/LocalRepositoryModelTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using GitHub.Primitives;
99
using Xunit.Abstractions;
1010
using System.Collections.Generic;
11+
using System.Threading.Tasks;
1112

1213
[Collection("PackageServiceProvider global data tests")]
1314
public class LocalRepositoryModelTests : TestBaseClass
@@ -25,8 +26,9 @@ static void SetupRepository(string sha)
2526
var gitservice = provider.GetGitService();
2627
var repo = Substitute.For<IRepository>();
2728
gitservice.GetRepository(Args.String).Returns(repo);
29+
gitservice.GetLatestPushedSha(Args.String).Returns(Task.FromResult(sha));
2830
if (!String.IsNullOrEmpty(sha))
29-
{
31+
{
3032
var refs = Substitute.For<ReferenceCollection>();
3133
var refrence = Substitute.For<Reference>();
3234
refs.ReachableFrom(Arg.Any<IEnumerable<Reference>>(), Arg.Any<IEnumerable<Commit>>()).Returns(new Reference[] { refrence });

0 commit comments

Comments
 (0)