diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-03-16 22:50:16 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-03-17 21:58:37 +0300 |
commit | d8a04a467baf2ec0139d214f798f5c0a82dd25cb (patch) | |
tree | fb7adb551288e7934a1bd1055fe1188e649ca35a /LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | |
parent | 964943bf9bed4da87a08befa7df30b8e2d77373d (diff) |
Update libgit2 to 9bbc8f3
https://github.com/libgit2/libgit2/compare/e0902fb...9bbc8f3
Diffstat (limited to 'LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index 63398fc4..a7cc1a58 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -405,8 +405,8 @@ namespace LibGit2Sharp.Tests.TestHelpers } protected static void AssertRefLogEntry(IRepository repo, string canonicalName, - ObjectId to, string message, ObjectId @from = null, - Signature committer = null) + string message, ObjectId @from, ObjectId to, + Identity committer, DateTimeOffset when) { var reflogEntry = repo.Refs.Log(canonicalName).First(); @@ -414,9 +414,8 @@ namespace LibGit2Sharp.Tests.TestHelpers Assert.Equal(message, reflogEntry.Message); Assert.Equal(@from ?? ObjectId.Zero, reflogEntry.From); - committer = committer ?? repo.Config.BuildSignature(DateTimeOffset.Now); Assert.Equal(committer.Email, reflogEntry.Committer.Email); - Assert.InRange(reflogEntry.Committer.When, committer.When - TimeSpan.FromSeconds(5), committer.When); + Assert.InRange(reflogEntry.Committer.When, when - TimeSpan.FromSeconds(5), when); } protected static void EnableRefLog(IRepository repository, bool enable = true) |