Make tests timeout after 3s
Этот коммит содержится в:
родитель
08d9bf34b0
Коммит
a3115435e8
6
Makefile
6
Makefile
|
@ -71,14 +71,14 @@ fmt:
|
|||
@$(GOCMD) fmt ./...
|
||||
|
||||
test:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 3s ./...
|
||||
|
||||
coverage:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 3s -cover -coverprofile=coverage.out ./...
|
||||
@$(GOCMD) tool cover -html=coverage.out
|
||||
|
||||
bench:
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 30s -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -d -v -cover -race -timeout 3s -cover -coverprofile=coverage.out ./...
|
||||
@CGO_ENABLED=1 $(GOCMD) test -race -benchtime=1x -cpu 16 -benchmem -bench "^(Benchmark)" .
|
||||
|
||||
clean:
|
||||
|
|
Загрузка…
Ссылка в новой задаче