From dc4c4066ca6df466532759e0e670a64fa880c1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E6=B6=A6=E6=A2=93?= <528185299@qq.com> Date: Fri, 5 Jul 2024 16:48:23 +0800 Subject: [PATCH] fix --- tests/e2e/greptimedbcluster_baremetal_test.go | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/tests/e2e/greptimedbcluster_baremetal_test.go b/tests/e2e/greptimedbcluster_baremetal_test.go index e6c242f2..de126d75 100644 --- a/tests/e2e/greptimedbcluster_baremetal_test.go +++ b/tests/e2e/greptimedbcluster_baremetal_test.go @@ -20,7 +20,6 @@ import ( "context" "database/sql" "fmt" - "io" "net" "os" "os/exec" @@ -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() }()