Skip to content

Commit

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

err = createcmd.Wait()
if _, ok := err.(*exec.ExitError); ok {
GinkgoWriter.Printf("the process is terminated successfully\n")
if err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
GinkgoWriter.Printf("Process was killed with signal: %v,the process is terminated successfully\n", exitErr)
} else {
GinkgoWriter.Printf("Process terminated with error: %v,failed to terminater the process\n", err)

Check warning on line 59 in tests/e2e/greptimedbcluster_baremetal_test.go

View workflow job for this annotation

GitHub Actions / Check typos

"terminater" should be "terminator".
}
} else {
GinkgoWriter.Printf("failed to terminate the process\n")
GinkgoWriter.Printf("failed to terminater the process\n")

Check warning on line 62 in tests/e2e/greptimedbcluster_baremetal_test.go

View workflow job for this annotation

GitHub Actions / Check typos

"terminater" should be "terminator".
}

err = deleteClusterinBaremetal()
Expand Down

0 comments on commit 2f16d46

Please sign in to comment.