Fixed tests & minor changes in Makefile
This commit is contained in:
parent
cd70db9922
commit
82e53669b8
6
Makefile
6
Makefile
|
@ -1,5 +1,7 @@
|
|||
GOPATH=$(shell go env GOPATH)
|
||||
|
||||
all: lint test
|
||||
|
||||
linters-install:
|
||||
@echo "+ $@"
|
||||
@$(GOPATH)/bin/golangci-lint --version >/dev/null 2>&1 || { \
|
||||
|
@ -12,6 +14,8 @@ lint: linters-install
|
|||
$(GOPATH)/bin/golangci-lint run ./...
|
||||
|
||||
test:
|
||||
GO111MODULE=on go test -cover -race ./...
|
||||
@echo "+ $@"
|
||||
GO111MODULE=on go test -covermode=atomic -race ./...
|
||||
|
||||
.PHONY: test lint linters-install
|
||||
.DEFAULT_GOAL := all
|
||||
|
|
|
@ -274,15 +274,6 @@ func TestJobHooks(t *testing.T) {
|
|||
filename string
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "JobEvent",
|
||||
events: []Event{JobEvents},
|
||||
typ: JobEventPayload{},
|
||||
filename: "../testdata/gitlab/job-event.json",
|
||||
headers: http.Header{
|
||||
"X-Gitlab-Event": []string{"Job Hook"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "JobEvent",
|
||||
events: []Event{JobEvents, BuildEvents},
|
||||
|
|
Loading…
Reference in New Issue