From dfce98d01b62672bbcccf8eb2fec2f3c168a749b Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 20 Mar 2019 15:18:57 +0100 Subject: [PATCH] swarm/api: Check error in config test --- swarm/api/config_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go index bd7e1d8705..b414708546 100644 --- a/swarm/api/config_test.go +++ b/swarm/api/config_test.go @@ -41,7 +41,10 @@ func TestConfig(t *testing.T) { 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 if one.BzzKey == "" {