From 0615d55e29b11e2443e24bd88ca8302a407a49c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E6=B6=A6=E6=A2=93?= <528185299@qq.com> Date: Mon, 24 Jun 2024 16:31:19 +0800 Subject: [PATCH] fix11 --- tests/e2e/greptimedbcluster_baremetal_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/e2e/greptimedbcluster_baremetal_test.go b/tests/e2e/greptimedbcluster_baremetal_test.go index 9bc26af3..18a4a4a2 100644 --- a/tests/e2e/greptimedbcluster_baremetal_test.go +++ b/tests/e2e/greptimedbcluster_baremetal_test.go @@ -51,6 +51,15 @@ var _ = Describe("Basic test of greptimedb cluster in baremetal", func() { Fail("process is not properly initialized") } + time.Sleep(2 * time.Second) + + err = cmd.Wait() + if err != nil { + GinkgoWriter.Printf("Process with PID %d terminated with error: %v\n", cmd.Process.Pid, err) + } else { + GinkgoWriter.Printf("Process with PID %d terminated successfully\n", cmd.Process.Pid) + } + err = deleteClusterinBaremetal() Expect(err).NotTo(HaveOccurred(), "failed to delete cluster in baremetal") })