Change node stop to TearDownTest (#21422)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/21438/head
congqixia 2022-12-28 20:11:30 +08:00 committed by GitHub
parent 41bbfbec6a
commit 3a58ac9fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -89,11 +89,15 @@ func (s *DataNodeServicesSuite) SetupTest() {
paramtable.SetNodeID(1) paramtable.SetNodeID(1)
} }
func (s *DataNodeServicesSuite) TearDownTest() {
s.node.Stop()
s.node = nil
}
func (s *DataNodeServicesSuite) TearDownSuite() { func (s *DataNodeServicesSuite) TearDownSuite() {
s.cancel() s.cancel()
err := s.etcdCli.Close() err := s.etcdCli.Close()
s.Require().NoError(err) s.Require().NoError(err)
s.node.Stop()
} }
func (s *DataNodeServicesSuite) TestNotInUseAPIs() { func (s *DataNodeServicesSuite) TestNotInUseAPIs() {