aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -536,11 +536,11 @@ mod tests {
|
||||
use super::janitor_cleanup;
|
||||
use super::linux_sandbox_exe_path;
|
||||
use super::run_main_with_arg0_guard;
|
||||
use anyhow::ensure;
|
||||
use akode_install_context::CodexPackageLayout;
|
||||
use akode_install_context::InstallContext;
|
||||
use akode_install_context::InstallMethod;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::ensure;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::fs;
|
||||
use std::fs::File;
|
||||
@@ -774,17 +774,17 @@ mod tests {
|
||||
// Unlocked foreign directories model a live peer whose lock is invisible
|
||||
// to this kernel. Only stale directories in our own namespace may go.
|
||||
for root in [&own_root, &foreign_root, &legacy_root] {
|
||||
let stale = root.join("codex-arg0-existing");
|
||||
let stale = root.join("akode-arg0-existing");
|
||||
fs::create_dir_all(&stale)?;
|
||||
create_lock(&stale)?;
|
||||
fs::write(stale.join("helper"), b"keep foreign helpers")?;
|
||||
}
|
||||
|
||||
let (guard, _) = super::prepare_aliases_in_home(home.path(), /*existing_path*/ None)?;
|
||||
assert!(!own_root.join("codex-arg0-existing").exists());
|
||||
assert!(!own_root.join("akode-arg0-existing").exists());
|
||||
assert_eq!(
|
||||
[&foreign_root, &legacy_root]
|
||||
.map(|root| fs::read(root.join("codex-arg0-existing/helper")))
|
||||
.map(|root| fs::read(root.join("akode-arg0-existing/helper")))
|
||||
.into_iter()
|
||||
.collect::<std::io::Result<Vec<_>>>()?,
|
||||
vec![b"keep foreign helpers".to_vec(); 2],
|
||||
@@ -800,7 +800,7 @@ mod tests {
|
||||
});
|
||||
assert!(helper.is_file());
|
||||
assert_eq!(
|
||||
fs::read(foreign_root.join("codex-arg0-existing/helper"))?,
|
||||
fs::read(foreign_root.join("akode-arg0-existing/helper"))?,
|
||||
b"keep foreign helpers",
|
||||
);
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user