Skip to content

Commit

Permalink
fix11
Browse files Browse the repository at this point in the history
  • Loading branch information
庄润梓 committed Jun 24, 2024
1 parent 8f857a5 commit fdf91cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/greptimedbcluster_baremetal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ var _ = Describe("Basic test of greptimedb cluster in baremetal", func() {
err = getClusterinBaremetal()
Expect(err).NotTo(HaveOccurred(), "failed to get cluster in baremetal")

err = cmd.Cancel()
Expect(err).NotTo(HaveOccurred(), "failed to kill create cluster process")
if cmd.Process != nil {
err = cmd.Process.Kill()
Expect(err).NotTo(HaveOccurred(), "failed to kill create cluster process")
} else {
Fail("command process is not properly initialized")
}

err = deleteClusterinBaremetal()
Expect(err).NotTo(HaveOccurred(), "failed to delete cluster in baremetal")
Expand Down

0 comments on commit fdf91cf

Please sign in to comment.