summaryrefslogtreecommitdiff
path: root/service/container_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/container_test.go')
-rw-r--r--service/container_test.go16
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()
+//}