mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/api: Check error in config test
This commit is contained in:
parent
23cd48c6b5
commit
dfce98d01b
1 changed files with 4 additions and 1 deletions
|
|
@ -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 == "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue