on main help sign in
revert: "test: try fix windows tests"
35c05ffKujtim Hoxha
internal/agent/common_test.go+1−7
@@ -5,7 +5,6 @@ import (
5 "net/http"
5 "net/http"
6 "os"
6 "os"
7 "path/filepath"
7 "path/filepath"
8− "strings"
9 "testing"
8 "testing"
10 "time"
9 "time"
11
10
@@ -155,15 +154,10 @@ func coderAgent(r *recorder.Recorder, env env, large, small fantasy.LanguageMode
155 t, _ := time.Parse("1/2/2006", "1/1/2025")
154 t, _ := time.Parse("1/2/2006", "1/1/2025")
156 return t
155 return t
157 }
156 }
158− path := filepath.ToSlash(env.workingDir)
159− // try fixing windows
160− if strings.Contains(path, ":") {
161− path = strings.Split(path, ":")[1]
162− }
163 prompt, err := coderPrompt(
157 prompt, err := coderPrompt(
164 prompt.WithTimeFunc(fixedTime),
158 prompt.WithTimeFunc(fixedTime),
165 prompt.WithPlatform("linux"),
159 prompt.WithPlatform("linux"),
166− prompt.WithWorkingDir(path),
160+ prompt.WithWorkingDir(filepath.ToSlash(env.workingDir)),
167 )
161 )
168 if err != nil {
162 if err != nil {
169 return nil, err
163 return nil, err