diff options
author | Wolfy-J <[email protected]> | 2018-07-08 13:06:05 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 13:06:05 -0700 |
commit | 29c9bf94350e86ec96f5ce5eeb476dfcd57302cd (patch) | |
tree | 9f59af6446958d144b7de91b5005a3727dc90661 /service/container_test.go | |
parent | 3c3a7801100f29c99a5e446646c818bf16ccd5f0 (diff) |
dependency injection and lighter service Init methods.
Diffstat (limited to 'service/container_test.go')
-rw-r--r-- | service/container_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |