From d361d3a99e37f95b0582d897da9d3cd515bd18cd Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 24 Dec 2013 12:09:32 +1030 Subject: [PATCH] corrected a couple of tests which were not specifying a Mode value --- Octokit.Tests.Integration/Clients/ReferencesClientTests.cs | 4 ++-- Octokit.Tests.Integration/Clients/TreeClientTests.cs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/ReferencesClientTests.cs b/Octokit.Tests.Integration/Clients/ReferencesClientTests.cs index 64425a53..8b4ee97c 100644 --- a/Octokit.Tests.Integration/Clients/ReferencesClientTests.cs +++ b/Octokit.Tests.Integration/Clients/ReferencesClientTests.cs @@ -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( 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 diff --git a/Octokit.Tests.Integration/Clients/TreeClientTests.cs b/Octokit.Tests.Integration/Clients/TreeClientTests.cs index 1c18a4d3..9017778c 100644 --- a/Octokit.Tests.Integration/Clients/TreeClientTests.cs +++ b/Octokit.Tests.Integration/Clients/TreeClientTests.cs @@ -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);