diff --git a/internal/datanode/services_test.go b/internal/datanode/services_test.go index b2d08513f8..1fda790e4c 100644 --- a/internal/datanode/services_test.go +++ b/internal/datanode/services_test.go @@ -89,11 +89,15 @@ func (s *DataNodeServicesSuite) SetupTest() { paramtable.SetNodeID(1) } +func (s *DataNodeServicesSuite) TearDownTest() { + s.node.Stop() + s.node = nil +} + func (s *DataNodeServicesSuite) TearDownSuite() { s.cancel() err := s.etcdCli.Close() s.Require().NoError(err) - s.node.Stop() } func (s *DataNodeServicesSuite) TestNotInUseAPIs() {