From 3c965c3e308a9399b6598e9d0f545f4e31fc578d Mon Sep 17 00:00:00 2001 From: Cameron Braid Date: Thu, 4 Feb 2021 14:12:25 +1100 Subject: [API] GetRelease by tag only return release (#14397) get release by tag should filter out tag releases to be consistent with list releases and get by id Co-authored-by: 6543 <6543@obermui.de> --- integrations/api_releases_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'integrations') diff --git a/integrations/api_releases_test.go b/integrations/api_releases_test.go index 870d7d0e64..2b310d11e0 100644 --- a/integrations/api_releases_test.go +++ b/integrations/api_releases_test.go @@ -7,7 +7,6 @@ package integrations import ( "fmt" "net/http" - "strings" "testing" "code.gitea.io/gitea/models" @@ -152,7 +151,7 @@ func TestAPIGetReleaseByTag(t *testing.T) { var err *api.APIError DecodeJSON(t, resp, &err) - assert.True(t, strings.HasPrefix(err.Message, "release tag does not exist")) + assert.EqualValues(t, "Not Found", err.Message) } func TestAPIDeleteTagByName(t *testing.T) { -- cgit v1.2.3