8000 Isolate a couple of tests which need crlf config · leoniDEV/libgit2sharp@09ced11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09ced11

Browse files
committed
Isolate a couple of tests which need crlf config
These need a specific CRLF configuration; if we let the user's environment leak into the test, they may fail.
1 parent cec9fee commit 09ced11

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

LibGit2Sharp.Tests/AttributesFixture.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ public class AttributesFixture : BaseFixture
99
[Fact]
1010
public void StagingHonorsTheAttributesFiles()
1111
{
12-
string path = SandboxStandardTestRepo();
13-
using (var repo = new Repository(path))
12+
using (var repo = InitIsolatedRepository())
1413
{
1514
CreateAttributesFile(repo);
1615

LibGit2Sharp.Tests/ObjectDatabaseFixture.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,13 @@ public void CanCreateABlobIntoTheDatabaseOfABareRepository()
103103
[InlineData("e9671e138a780833cb689753570fd10a55be84fb", "dummy.guess")]
104104
public void CanCreateABlobFromAStream(string expectedSha, string hintPath)
105105
{
106-
string path = InitNewRepository();
107-
108106
var sb = new StringBuilder();
109107
for (int i = 0; i < 6; i++)
110108
{
111109
sb.Append("libgit2\n\r\n");
112110
}
113111

114-
using (var repo = new Repository(path))
112+
using (var repo = InitIsolatedRepository())
115113
{
116114
CreateAttributesFiles(Path.Combine(repo.Info.Path, "info"), "attributes");
117115

0 commit comments

Comments
 (0)
0