Browse Source

fix(test): try to have the correct dir for windows

Kujtim Hoxha 3 tháng trước cách đây
mục cha
commit
46dcc50e38
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      internal/agent/common_test.go

+ 1 - 1
internal/agent/common_test.go

@@ -157,7 +157,7 @@ func coderAgent(r *recorder.Recorder, env env, large, small fantasy.LanguageMode
 	prompt, err := coderPrompt(
 	prompt, err := coderPrompt(
 		prompt.WithTimeFunc(fixedTime),
 		prompt.WithTimeFunc(fixedTime),
 		prompt.WithPlatform("linux"),
 		prompt.WithPlatform("linux"),
-		prompt.WithWorkingDir(env.workingDir),
+		prompt.WithWorkingDir(filepath.ToSlash(env.workingDir)),
 	)
 	)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err