From 45a010bb2f8971ddddf24becc4200bcd992981d6 Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Wed, 8 Aug 2018 05:06:18 -0500 Subject: [PATCH] Merge PR #1937: crypto/keys: Reduce bcrypt parameter in tests Currently the crypto/keys tests take 2 minutes in circle CI. A significant portion of this time is due to the bcrypt security parameter. Changing it for these tests should reduce the time significantly. --- crypto/keys/keybase_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/keys/keybase_test.go b/crypto/keys/keybase_test.go index 7053896c67..114c0e7d59 100644 --- a/crypto/keys/keybase_test.go +++ b/crypto/keys/keybase_test.go @@ -13,6 +13,10 @@ import ( dbm "github.com/tendermint/tendermint/libs/db" ) +func init() { + BcryptSecurityParameter = 1 +} + // TestKeyManagement makes sure we can manipulate these keys well func TestKeyManagement(t *testing.T) { // make the storage with reasonable defaults