Skip to content

Commit 33d4a08

Browse files
committed
Fix, because of the migration to go/loader we need more time during
testing
1 parent 41e811f commit 33d4a08

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
44
export PKG := github.com/zimmski/go-mutesting
55
export ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
66

7+
export TEST_TIMEOUT_IN_SECONDS := 240
8+
79
$(eval $(ARGS):;@:) # turn arguments into do-nothing targets
810
export ARGS
911

@@ -43,8 +45,8 @@ install-tools:
4345
lint:
4446
$(ROOT_DIR)/scripts/lint.sh
4547
test:
46-
go test -race -test.timeout 120s $(PKG_TEST)
48+
go test -race -test.timeout "$(TEST_TIMEOUT_IN_SECONDS)s" $(PKG_TEST)
4749
test-verbose:
48-
go test -race -test.timeout 120s -v $(PKG_TEST)
50+
go test -race -test.timeout "$(TEST_TIMEOUT_IN_SECONDS)s" -v $(PKG_TEST)
4951
test-verbose-with-coverage:
5052
ginkgo -r -v -cover -race -skipPackage="testdata"

example/a.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
type A struct{}
88

99
func fooA() (a A, b http.Header) {
10-
a, b = A{}, http.Header{}
10+
_, _, _ = a, b, http.Header{}
1111

1212
return a, b
1313
}

0 commit comments

Comments
 (0)