Skip to content

Commit

Permalink
fix11
Browse files Browse the repository at this point in the history
  • Loading branch information
庄润梓 committed Jun 21, 2024
1 parent c94f907 commit 1b02bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/greptimedbcluster_baremetal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Basic test of greptimedb cluster", func() {
}()

for {
if conn, err := net.DialTimeout("http", "localhost:4000", 2*time.Second); err == nil {
if conn, err := net.DialTimeout("tcp", "localhost:4000", 2*time.Second); err == nil {
defer conn.Close()
break
}
Expand All @@ -47,8 +47,8 @@ var _ = Describe("Basic test of greptimedb cluster", func() {
err = getClusterinBaremetal()
Expect(err).NotTo(HaveOccurred(), "failed to get cluster in baremetal")

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

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

0 comments on commit 1b02bbe

Please sign in to comment.