diff --git a/fsm/fsm.go b/fsm/fsm.go index 7ccff5c..ca740a9 100644 --- a/fsm/fsm.go +++ b/fsm/fsm.go @@ -39,7 +39,7 @@ Transition moves worker from one state to another func (s *Fsm) Transition(to int64) { err := s.recognizer(to) if err != nil { - s.log.Debug("fsm transition error", zap.Error(err)) + s.log.Debug("transition info, this is not an error", zap.String("debug", err.Error())) return } diff --git a/pool/static_pool/supervisor_test.go b/pool/static_pool/supervisor_test.go index 6b59561..6c85fb4 100644 --- a/pool/static_pool/supervisor_test.go +++ b/pool/static_pool/supervisor_test.go @@ -425,7 +425,6 @@ func TestSupervisedPool_Idle(t *testing.T) { }, make(chan struct{})) assert.NoError(t, err) - time.Sleep(time.Second * 2) require.Len(t, p.Workers(), 1) // should be new worker with new pid assert.NotEqual(t, pid, p.Workers()[0].Pid())