From 4292b14ef4c585b3f96d89b8c05c2625a8a1c5a8 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 10 Aug 2022 13:10:23 -0400 Subject: [PATCH] chore: make dynamic tests optional --- Makefile | 8 ++++---- waku/v2/protocol/rln/onchain_test.go | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c6113cff..faade6a1 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ lint: @golangci-lint --exclude=SA1019 run ./... --deadline=5m 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} ${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV} @@ -158,6 +158,6 @@ start-ganache: stop-ganache: docker stop ganache-cli -test-rln: - go test -timeout 30s -v -count 1 github.com/status-im/go-waku/waku/v2/protocol/rln - \ No newline at end of file +test-onchain: + ${GOBIN} test -v -count 1 -tags="include_onchain_tests" github.com/status-im/go-waku/waku/v2/protocol/rln + diff --git a/waku/v2/protocol/rln/onchain_test.go b/waku/v2/protocol/rln/onchain_test.go index 237c0a12..610a4099 100644 --- a/waku/v2/protocol/rln/onchain_test.go +++ b/waku/v2/protocol/rln/onchain_test.go @@ -1,3 +1,6 @@ +//go:build include_onchain_tests +// +build include_onchain_tests + package rln import (