mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
corrected a couple of tests which were not specifying a Mode value
This commit is contained in:
@@ -55,14 +55,14 @@ public class ReferencesClientTests : IDisposable
|
||||
Assert.NotEmpty(list);
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip="See ")]
|
||||
[IntegrationTest(Skip = "See https://github.com/octokit/octokit.net/issues/242 for making this test pass")]
|
||||
public async Task CanGetErrorForInvalidNamespace()
|
||||
{
|
||||
await AssertEx.Throws<Exception>(
|
||||
async () => { await _fixture.GetAllForSubNamespace("octokit", "octokit.net", "666"); });
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip = "Investigating a 'Server Error' API response when creating a commit")]
|
||||
[IntegrationTest]
|
||||
public async Task CanCreateAReference()
|
||||
{
|
||||
var blob = new NewBlob
|
||||
|
||||
@@ -41,7 +41,8 @@ public class TreeClientTests : IDisposable
|
||||
{
|
||||
Type = TreeType.Blob,
|
||||
Path = "README.md",
|
||||
Sha = createdBlob.Sha
|
||||
Sha = createdBlob.Sha,
|
||||
Mode = FileMode.File
|
||||
});
|
||||
|
||||
var result = await _fixture.Create(_owner, _repository.Name, newTree);
|
||||
@@ -74,7 +75,8 @@ public class TreeClientTests : IDisposable
|
||||
{
|
||||
Type = TreeType.Blob,
|
||||
Path = "README.md",
|
||||
Sha = blobResult.Sha
|
||||
Sha = blobResult.Sha,
|
||||
Mode = FileMode.File
|
||||
});
|
||||
|
||||
var tree = await _fixture.Create(_owner, _repository.Name, newTree);
|
||||
|
||||
Reference in New Issue
Block a user