diff options
author | Wolfy-J <[email protected]> | 2018-07-08 21:35:11 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 21:35:11 -0700 |
commit | 2f2b3137d243a75a98cf2a0a3ab32e7fb407e48d (patch) | |
tree | 4ba6be5a20c4bb58aa28d73b4cd3dc17371c5de3 /service/container_test.go | |
parent | f688229fe93016064ad67b381e774881d991b8ab (diff) |
minor CS
Diffstat (limited to 'service/container_test.go')
-rw-r--r-- | service/container_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/service/container_test.go b/service/container_test.go index bf95cbd4..d2ca1f03 100644 --- a/service/container_test.go +++ b/service/container_test.go @@ -325,3 +325,19 @@ func TestContainer_ServeErrorMultiple(t *testing.T) { assert.IsType(t, &testService{}, s) assert.Equal(t, StatusStopped, st) } + +//func TestContainer_Init(t *testing.T) { +// logger, hook := test.NewNullLogger() +// logger.SetLevel(logrus.DebugLevel) +// +// svc := &testService{ok: true} +// +// c := NewContainer(logger) +// c.Register("test", svc) +// c.Register("test2", struct{}{}) +// +// assert.Equal(t, 2, len(hook.Entries)) +// +// assert.NoError(t, c.Serve()) +// c.Stop() +//} |