swarm/api: Check error in config test

This commit is contained in:
lash 2019-03-20 15:18:57 +01:00
parent 23cd48c6b5
commit dfce98d01b

View file

@ -41,7 +41,10 @@ func TestConfig(t *testing.T) {
t.Fatal("Two default configs are not equal") t.Fatal("Two default configs are not equal")
} }
one.Init(prvkey) err := one.Init(prvkey)
if err != nil {
t.Fatal(err)
}
//the init function should set the following fields //the init function should set the following fields
if one.BzzKey == "" { if one.BzzKey == "" {