From 29c9bf94350e86ec96f5ce5eeb476dfcd57302cd Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 8 Jul 2018 13:06:05 -0700 Subject: dependency injection and lighter service Init methods. --- service/container_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/container_test.go') diff --git a/service/container_test.go b/service/container_test.go index 3092be78..bf95cbd4 100644 --- a/service/container_test.go +++ b/service/container_test.go @@ -144,7 +144,7 @@ func TestContainer_Configure(t *testing.T) { s, st := c.Get("test") assert.IsType(t, &testService{}, s) - assert.Equal(t, StatusConfigured, st) + assert.Equal(t, StatusOK, st) } func TestContainer_ConfigureNull(t *testing.T) { @@ -176,7 +176,7 @@ func TestContainer_ConfigureDisabled(t *testing.T) { assert.Equal(t, 1, len(hook.Entries)) assert.NoError(t, c.Init(&testCfg{`{"test":"something"}`})) - assert.Equal(t, 1, len(hook.Entries)) + assert.Equal(t, 2, len(hook.Entries)) s, st := c.Get("test") assert.IsType(t, &testService{}, s) -- cgit v1.2.3