mirror of
https://github.com/status-im/status-go.git
synced 2025-02-01 17:38:36 +00:00
Fail tests if ACCOUNT_PASSWORD
env var is not defined
This commit is contained in:
parent
d5be8c525d
commit
291ad8fa35
@ -297,7 +297,12 @@ func loadTestConfig() (*testConfig, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pass := os.Getenv(passphraseEnvName)
|
||||
pass, ok := os.LookupEnv(passphraseEnvName)
|
||||
if !ok {
|
||||
err := fmt.Errorf("Missing %s environment variable", passphraseEnvName)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
config.Account1.Password = pass
|
||||
config.Account2.Password = pass
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user