on main help sign in
revert: "test: try fix windows tests"

This reverts commit 3cf895f5f01a894e1da346006b8b11df51c99b8d.

commit35c05fff4040088dfcdf64942f8c005c2e6e47c7 authorKujtim Hoxha <kujtimii.h@gmail.com> dateFri 24 Oct 2025, 16:28 (1 year ago) parent3cf895f
1 file changed+1−7
internal/agent/common_test.go+1−7
internal/agent/common_test.go+1−7
@@ -5,7 +5,6 @@ import (
55 "net/http"
66 "os"
77 "path/filepath"
8− "strings"
98 "testing"
109 "time"
1110
@@ -155,15 +154,10 @@ func coderAgent(r *recorder.Recorder, env env, large, small fantasy.LanguageMode
155154 t, _ := time.Parse("1/2/2006", "1/1/2025")
156155 return t
157156 }
158− path := filepath.ToSlash(env.workingDir)
159− // try fixing windows
160− if strings.Contains(path, ":") {
161− path = strings.Split(path, ":")[1]
162− }
163157 prompt, err := coderPrompt(
164158 prompt.WithTimeFunc(fixedTime),
165159 prompt.WithPlatform("linux"),
166− prompt.WithWorkingDir(path),
160+ prompt.WithWorkingDir(filepath.ToSlash(env.workingDir)),
167161 )
168162 if err != nil {
169163 return nil, err