mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
[cli] make thread inventory assertion path-stable
This commit is contained in:
@@ -779,11 +779,13 @@ mod tests {
|
||||
.as_deref()
|
||||
.is_some_and(|remedy| remedy.starts_with("Restart Codex"))
|
||||
}));
|
||||
let missing_file_name = missing_path.file_name().expect("rollout file name");
|
||||
assert!(
|
||||
check
|
||||
.details
|
||||
.iter()
|
||||
.any(|detail| detail.contains(missing_path.to_string_lossy().as_ref()))
|
||||
.filter_map(|detail| detail.strip_prefix("rollout DB missing active sample: "))
|
||||
.any(|sample| Path::new(sample).file_name() == Some(missing_file_name))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user