From 7f072e331aaaa9b75046314bd85dd037085e78bb Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 23 May 2017 23:36:18 +0800 Subject: [PATCH] fix gitea file testing. Signed-off-by: Bo-Yi Wu --- remote/gitea/gitea_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/remote/gitea/gitea_test.go b/remote/gitea/gitea_test.go index c1e72c869..1b427be3b 100644 --- a/remote/gitea/gitea_test.go +++ b/remote/gitea/gitea_test.go @@ -127,12 +127,6 @@ func Test_gitea(t *testing.T) { g.Assert(string(raw)).Equal("{ platform: linux/amd64 }") }) - g.It("Should return a repository file from a ref", func() { - raw, err := c.File(fakeUser, fakeRepo, fakeBuildWithRef, ".drone.yml") - g.Assert(err == nil).IsTrue() - g.Assert(string(raw)).Equal("{ platform: linux/amd64 }") - }) - g.It("Should return nil from send build status", func() { err := c.Status(fakeUser, fakeRepo, fakeBuild, "http://gitea.io") g.Assert(err == nil).IsTrue() @@ -186,8 +180,4 @@ var ( fakeBuild = &model.Build{ Commit: "9ecad50", } - - fakeBuildWithRef = &model.Build{ - Ref: "refs/tags/v1.0.0", - } )