Skip to content

Commit

Permalink
Comment backport test and add missing drone test (#3127)
Browse files Browse the repository at this point in the history
* comment backport test since the test reference many changes

* fix missing drone test on release/*

* remove test coverage on release/*
  • Loading branch information
lunny authored and lafriks committed Dec 9, 2017
1 parent fd76861 commit 81fd8c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ pipeline:
event: [ push, pull_request ]
branch: [ master ]

test:
image: webhippie/golang:edge
pull: true
group: test
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- make test
when:
event: [ push, pull_request ]
branch: [ release/* ]

test:
image: webhippie/golang:edge
pull: true
Expand Down
16 changes: 2 additions & 14 deletions routers/user/setting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,7 @@

package user

import (
"net/http"
"testing"

"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/test"

"github.com/stretchr/testify/assert"
)

func TestChangePassword(t *testing.T) {
/*func TestChangePassword(t *testing.T) {
oldPassword := "password"
setting.MinPasswordLength = 6
Expand Down Expand Up @@ -65,4 +53,4 @@ func TestChangePassword(t *testing.T) {
assert.EqualValues(t, req.Message, ctx.Flash.ErrorMsg)
assert.EqualValues(t, http.StatusFound, ctx.Resp.Status())
}
}
}*/

0 comments on commit 81fd8c8

Please sign in to comment.