Skip to content

Commit

Permalink
close
Browse files Browse the repository at this point in the history
  • Loading branch information
庄润梓 committed Jul 5, 2024
1 parent d4f0dd5 commit a4f2fc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/e2e/greptimedbcluster_baremetal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ var _ = Describe("Basic test of greptimedb cluster in baremetal", Ordered, func(
}
Expect(len(data) == testRowIDNum).Should(BeTrue(), "get the wrong data from db")

err = conn.Close()
Expect(err).NotTo(HaveOccurred(), "failed to close SQL connection")

err = createcmd.Process.Kill()
Expect(err).NotTo(HaveOccurred(), "failed to kill create cluster process")

Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/greptimedbcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ var _ = Describe("Basic test of greptimedb cluster", Ordered, func() {
if err != nil {
return err
}

return nil
}, 30*time.Second, time.Second).ShouldNot(HaveOccurred())

Expand Down Expand Up @@ -136,6 +135,9 @@ var _ = Describe("Basic test of greptimedb cluster", Ordered, func() {
}
Expect(len(data) == testRowIDNum).Should(BeTrue(), "get the wrong data from db")

err = conn.Close()
Expect(err).NotTo(HaveOccurred(), "failed to close SQL connection")

err = deleteCluster()
Expect(err).NotTo(HaveOccurred(), "failed to delete cluster")
})
Expand Down

0 comments on commit a4f2fc0

Please sign in to comment.