aboutsummaryrefslogtreecommitdiff
path: root/src/detect/manifest_update.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-13 03:46:02 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-13 03:46:37 +0300
commit4800ff54f0a85019d589211f42aafe476a7fd45d (patch)
tree7d29781c2bb6c3d648a55ef3f3c2c6c888dd873e /src/detect/manifest_update.rs
parent5cfe5e5e730246948b0c9428ad876b6938590aad (diff)
fix: detect reordered codex title spinners
refs #1281
Diffstat (limited to 'src/detect/manifest_update.rs')
-rw-r--r--src/detect/manifest_update.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/detect/manifest_update.rs b/src/detect/manifest_update.rs
index a1537fab..ac06ec97 100644
--- a/src/detect/manifest_update.rs
+++ b/src/detect/manifest_update.rs
@@ -614,7 +614,7 @@ contains = ["{contains}"]
#[test]
fn process_agent_manifest_commits_newer_manifest_atomically() {
with_state_dir("commit-newer", || {
- let content = remote_manifest("2026.06.10.5", "ready");
+ let content = remote_manifest("9999.01.01.1", "ready");
let commit = process_agent_manifest(Agent::Codex, &content, 1)
.unwrap()
.unwrap();
@@ -622,7 +622,7 @@ contains = ["{contains}"]
assert_eq!(commit.agent, Agent::Codex);
assert_eq!(
commit.version,
- ManifestVersion::parse("2026.06.10.5").unwrap()
+ ManifestVersion::parse("9999.01.01.1").unwrap()
);
assert_eq!(
fs::read_to_string(remote_manifest_path(Agent::Codex)).unwrap(),
@@ -652,7 +652,7 @@ path = "codex.toml"
.unwrap();
fs::write(
web_dir.join("codex.toml"),
- remote_manifest("2026.06.10.5", "auto-update-ready"),
+ remote_manifest("9999.01.01.1", "auto-update-ready"),
)
.unwrap();
std::env::set_var(
@@ -693,10 +693,10 @@ path = "codex.toml"
#[test]
fn process_agent_manifest_rejects_downgrade_and_keeps_cached_manifest() {
with_state_dir("reject-downgrade", || {
- let current = remote_manifest("2026.06.10.5", "current");
+ let current = remote_manifest("9999.01.01.1", "current");
process_agent_manifest(Agent::Codex, &current, 1).unwrap();
- let older = remote_manifest("2026.06.10.4", "older");
+ let older = remote_manifest("9999.01.01.0", "older");
assert!(process_agent_manifest(Agent::Codex, &older, 2).is_err());
assert_eq!(
fs::read_to_string(remote_manifest_path(Agent::Codex)).unwrap(),
@@ -708,10 +708,10 @@ path = "codex.toml"
#[test]
fn process_agent_manifest_rejects_equal_version_content_change() {
with_state_dir("reject-equal-change", || {
- let current = remote_manifest("2026.06.10.5", "current");
+ let current = remote_manifest("9999.01.01.1", "current");
process_agent_manifest(Agent::Codex, &current, 1).unwrap();
- let changed = remote_manifest("2026.06.10.5", "changed");
+ let changed = remote_manifest("9999.01.01.1", "changed");
assert!(process_agent_manifest(Agent::Codex, &changed, 2).is_err());
assert_eq!(
fs::read_to_string(remote_manifest_path(Agent::Codex)).unwrap(),
@@ -723,7 +723,7 @@ path = "codex.toml"
#[test]
fn process_agent_manifest_skips_same_version_same_content() {
with_state_dir("skip-same", || {
- let current = remote_manifest("2026.06.10.5", "current");
+ let current = remote_manifest("9999.01.01.1", "current");
process_agent_manifest(Agent::Codex, &current, 1).unwrap();
let result = process_agent_manifest(Agent::Codex, &current, 2).unwrap();