Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
庄润梓 committed Jul 5, 2024
1 parent a60de7e commit dc4c406
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions tests/e2e/greptimedbcluster_baremetal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"context"
"database/sql"
"fmt"
"io"
"net"
"os"
"os/exec"
Expand Down Expand Up @@ -49,18 +48,18 @@ var _ = Describe("Basic test of greptimedb cluster in baremetal", Ordered, func(
err = getClusterinBaremetal()
Expect(err).NotTo(HaveOccurred(), "failed to get cluster in baremetal")

logFile, err := os.Open("/home/runner/.gtctl/mycluster/logs/frontend.0/log")
if err != nil {
fmt.Printf("Failed to open log file: %v\n", err)
return
}
defer logFile.Close()

// 将文件内容拷贝到标准输出
if _, err := io.Copy(os.Stdout, logFile); err != nil {
fmt.Printf("Failed to copy log file content to stdout: %v\n", err)
}

/* logFile, err := os.Open("/home/runner/.gtctl/mycluster/logs/frontend.0/log")
if err != nil {
fmt.Printf("Failed to open log file: %v\n", err)
return
}
defer logFile.Close()
// 将文件内容拷贝到标准输出
if _, err := io.Copy(os.Stdout, logFile); err != nil {
fmt.Printf("Failed to copy log file content to stdout: %v\n", err)
}
*/
go func() {
forwardRequest()
}()
Expand Down

0 comments on commit dc4c406

Please sign in to comment.