diff options
Diffstat (limited to 'service/http/service_test.go')
-rw-r--r-- | service/http/service_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/service/http/service_test.go b/service/http/service_test.go index bfc10971..c4b2c2c4 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -54,9 +54,7 @@ func Test_Service_NoConfig(t *testing.T) { c.Register(ID, &Service{}) err := c.Init(&testCfg{httpCfg: `{"Enable":true}`}) - if err != nil { - t.Errorf("error during the Init: error %v", err) - } + assert.Error(t, err) s, st := c.Get(ID) assert.NotNil(t, s) |