test: 同步测试中的版本号至 5.2.3

修复 CI 失败:将 main_test.go 中的版本期望值从 5.2.2 更新为 5.2.3,
与 main.go 中的实际版本号保持一致。

修改文件:
- codeagent-wrapper/main_test.go:2693 (TestVersionFlag)
- codeagent-wrapper/main_test.go:2707 (TestVersionShortFlag)
- codeagent-wrapper/main_test.go:2721 (TestVersionLegacyAlias)

Generated with swe-agent-bot

Co-Authored-By: swe-agent-bot <agent@swe-agent.ai>
This commit is contained in:
swe-agent[bot]
2025-12-15 14:13:03 +08:00
parent 0c93bbe574
commit b1156038de

View File

@@ -2690,7 +2690,7 @@ func TestVersionFlag(t *testing.T) {
t.Errorf("exit = %d, want 0", code)
}
})
want := "codeagent-wrapper version 5.2.2\n"
want := "codeagent-wrapper version 5.2.3\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)
}
@@ -2704,7 +2704,7 @@ func TestVersionShortFlag(t *testing.T) {
t.Errorf("exit = %d, want 0", code)
}
})
want := "codeagent-wrapper version 5.2.2\n"
want := "codeagent-wrapper version 5.2.3\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)
}
@@ -2718,7 +2718,7 @@ func TestVersionLegacyAlias(t *testing.T) {
t.Errorf("exit = %d, want 0", code)
}
})
want := "codex-wrapper version 5.2.2\n"
want := "codex-wrapper version 5.2.3\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)
}