Tests almost passing

This commit is contained in:
Zach Ramsay
2017-10-03 19:36:01 -04:00
committed by Ethan Buchman
parent a15c7f221d
commit 7ad8a8ab55
6 changed files with 14 additions and 7 deletions

View File

@ -34,7 +34,9 @@ func TestLoadOrGenValidator(t *testing.T) {
assert := assert.New(t)
_, tempFilePath := cmn.Tempfile("priv_validator_")
os.Remove(tempFilePath)
if err := os.Remove(tempFilePath); err != nil {
t.Error(err)
}
privVal := LoadOrGenPrivValidatorFS(tempFilePath)
addr := privVal.GetAddress()
privVal = LoadOrGenPrivValidatorFS(tempFilePath)