chore: make dynamic tests optional

This commit is contained in:
Richard Ramos 2022-08-10 13:10:23 -04:00
parent c2ce8326ff
commit 4292b14ef4
2 changed files with 7 additions and 4 deletions

View File

@ -57,7 +57,7 @@ lint:
@golangci-lint --exclude=SA1019 run ./... --deadline=5m @golangci-lint --exclude=SA1019 run ./... --deadline=5m
test: test:
${GOBIN} test -timeout 300s ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp ${GOBIN} test ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp
cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE} cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE}
${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV} ${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV}
@ -158,6 +158,6 @@ start-ganache:
stop-ganache: stop-ganache:
docker stop ganache-cli docker stop ganache-cli
test-rln: test-onchain:
go test -timeout 30s -v -count 1 github.com/status-im/go-waku/waku/v2/protocol/rln ${GOBIN} test -v -count 1 -tags="include_onchain_tests" github.com/status-im/go-waku/waku/v2/protocol/rln

View File

@ -1,3 +1,6 @@
//go:build include_onchain_tests
// +build include_onchain_tests
package rln package rln
import ( import (