Skip to content

Commit 82e5366

Browse files
committed
Fixed tests & minor changes in Makefile
1 parent cd70db9 commit 82e5366

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
GOPATH=$(shell go env GOPATH)
22

3+
all: lint test
4+
35
linters-install:
46
@echo "+ $@"
57
@$(GOPATH)/bin/golangci-lint --version >/dev/null 2>&1 || { \
@@ -12,6 +14,8 @@ lint: linters-install
1214
$(GOPATH)/bin/golangci-lint run ./...
1315

1416
test:
15-
GO111MODULE=on go test -cover -race ./...
17+
@echo "+ $@"
18+
GO111MODULE=on go test -covermode=atomic -race ./...
1619

1720
.PHONY: test lint linters-install
21+
.DEFAULT_GOAL := all

gitlab/gitlab_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,6 @@ func TestJobHooks(t *testing.T) {
274274
filename string
275275
headers http.Header
276276
}{
277-
{
278-
name: "JobEvent",
279-
events: []Event{JobEvents},
280-
typ: JobEventPayload{},
281-
filename: "../testdata/gitlab/job-event.json",
282-
headers: http.Header{
283-
"X-Gitlab-Event": []string{"Job Hook"},
284-
},
285-
},
286277
{
287278
name: "JobEvent",
288279
events: []Event{JobEvents, BuildEvents},

0 commit comments

Comments
 (0)