From 760e7a488d441a2e86c4babe8c8bfbda93c62c05 Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Wed, 2 Aug 2023 10:34:49 +0800 Subject: [PATCH] remove extra fakeLogManager decl --- internals/overlord/servstate/manager_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internals/overlord/servstate/manager_test.go b/internals/overlord/servstate/manager_test.go index e951556b..af9befd6 100644 --- a/internals/overlord/servstate/manager_test.go +++ b/internals/overlord/servstate/manager_test.go @@ -1551,12 +1551,6 @@ func (s *S) TestStopRunningNoServices(c *C) { c.Assert(taskSet, IsNil) } -type fakeLogManager struct{} - -func (f fakeLogManager) ServiceStarted(service *plan.Service, logs *servicelog.RingBuffer) { - // no-op -} - func (s *S) TestNoWorkingDir(c *C) { dir := c.MkDir() err := os.Mkdir(filepath.Join(dir, "layers"), 0755) @@ -1873,7 +1867,7 @@ func createZombie() error { type fakeLogManager struct{} -func (f fakeLogManager) ServiceStarted(serviceName string, logs *servicelog.RingBuffer) { +func (f fakeLogManager) ServiceStarted(service *plan.Service, logs *servicelog.RingBuffer) { // no-op }