From 6c7f893f7a7848234ba7fd516417c7aebecfeea4 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 27 May 2023 12:08:27 +1000 Subject: [PATCH] WIP --- pkg/integration/clients/go_test.go | 3 +++ pkg/integration/result/result.go | 1 - pkg/logs/logs.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/integration/clients/go_test.go b/pkg/integration/clients/go_test.go index 07e27f968..cf938ccc8 100644 --- a/pkg/integration/clients/go_test.go +++ b/pkg/integration/clients/go_test.go @@ -10,6 +10,7 @@ import ( "os" "os/exec" "testing" + "time" "github.com/creack/pty" "github.com/jesseduffield/lazygit/pkg/integration/components" @@ -89,6 +90,8 @@ func runCmdHeadless(cmd *exec.Cmd) error { _ = cmd.Wait() + time.Sleep(time.Second) + result, err := result.ReadResult(resultPath) if err != nil { return fmt.Errorf("Error reading integration test result: %w", err) diff --git a/pkg/integration/result/result.go b/pkg/integration/result/result.go index 203259ec8..d1f9fdbd0 100644 --- a/pkg/integration/result/result.go +++ b/pkg/integration/result/result.go @@ -40,7 +40,6 @@ func success() IntegrationTestResult { func writeResult(result IntegrationTestResult) error { resultPath := os.Getenv(PathEnvVar) if resultPath == "" { - panic("path env var not set!") // path env var not set so we'll assume we don't need to write the result to a file return nil } diff --git a/pkg/logs/logs.go b/pkg/logs/logs.go index 7ec1b91b4..3558e52a6 100644 --- a/pkg/logs/logs.go +++ b/pkg/logs/logs.go @@ -21,7 +21,7 @@ import ( var Global *logrus.Entry func init() { - logPath := os.Getenv("LAZYGIT_LOG_PATH") + logPath := `C:\Users\New\AppData\Roaming\jesseduffield\lazygit\development.log` if logPath != "" { Global = NewDevelopmentLogger(logPath) }