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.
This commit is contained in:
Dev Ojha
2018-08-08 12:06:18 +02:00
committed by Christopher Goes
parent 10199c9159
commit 45a010bb2f
+4
View File
@@ -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