From 1483ed119b8c7f86b04b990b4960da007d166882 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 10 Dec 2020 15:05:22 -0800 Subject: [PATCH] make: use low-scrypt to speed up unit-race This predominately affects the lnwallet unit tests which are the bulk of the execution time. --- lnwallet/btcwallet/btcwallet_rpctest.go | 2 +- make/testing_flags.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/btcwallet/btcwallet_rpctest.go b/lnwallet/btcwallet/btcwallet_rpctest.go index 7139e4cc1..28dd35a72 100644 --- a/lnwallet/btcwallet/btcwallet_rpctest.go +++ b/lnwallet/btcwallet/btcwallet_rpctest.go @@ -1,4 +1,4 @@ -// +build rpctest +// +build rpctest lowscrypt package btcwallet diff --git a/make/testing_flags.mk b/make/testing_flags.mk index da5cbeb11..88287f843 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -86,7 +86,7 @@ UNIT_TARGETED ?= no # targeted case. Otherwise, default to running all tests. ifeq ($(UNIT_TARGETED), yes) UNIT := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) $(UNITPKG) -UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) -race $(UNITPKG) +UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS) lowscrypt" $(TEST_FLAGS) -race $(UNITPKG) endif ifeq ($(UNIT_TARGETED), no)