Skip to content

Commit d07b4e5

Browse files
committed
fixup! Enforce repo.RetrieveStatus() test coverage
1 parent 051c3ec commit d07b4e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LibGit2Sharp.Tests/StatusFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ public void CanHandleTwoStatusEntryChangesWithTheSamePath()
601601

602602
using (Repository repo = new Repository(path))
603603
{
604-
Blob mainContent = OdbHelper.CreateBlob(repo, "awesome content\n");
604+
var awesomeContent = new string('!', 4096) + "awesome content\n";
605+
Blob mainContent = OdbHelper.CreateBlob(repo, awesomeContent);
605606
Blob linkContent = OdbHelper.CreateBlob(repo, "../../objc/Nu.h");
606607

607608
const string filePath = "include/Nu/Nu.h";
@@ -620,7 +621,7 @@ public void CanHandleTwoStatusEntryChangesWithTheSamePath()
620621

621622
string parentPath = Path.Combine(repo.Info.WorkingDirectory, "include/Nu");
622623

623-
Touch(parentPath, "Nu.h", "awesome content\n");
624+
Touch(parentPath, "Nu.h", awesomeContent);
624625

625626
RepositoryStatus status = repo.RetrieveStatus(
626627
new StatusOptions { DetectRenamesInIndex = true, DetectRenamesInWorkDir = true });

0 commit comments

Comments
 (0)