turn test: build the bus inside with_harness_dir so it passes without HYPERHIVE_HARNESS_DIR
This commit is contained in:
parent
9ae56e0fec
commit
a32c144b80
1 changed files with 8 additions and 4 deletions
|
|
@ -865,12 +865,16 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn a_turn_that_parsed_nothing_does_not_keep_the_previous_resolved_model() {
|
||||
let bus = Bus::new();
|
||||
bus.set_resolved_model(Some("claude-opus-4-8".to_owned()));
|
||||
let resolved = crate::paths::with_harness_dir(|| {
|
||||
let bus = Bus::new();
|
||||
bus.set_resolved_model(Some("claude-opus-4-8".to_owned()));
|
||||
|
||||
apply_telemetry(&bus, &hive_claude::Telemetry::default());
|
||||
apply_telemetry(&bus, &hive_claude::Telemetry::default());
|
||||
|
||||
assert_eq!(bus.last_resolved_model(), None);
|
||||
bus.last_resolved_model()
|
||||
});
|
||||
|
||||
assert_eq!(resolved, None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue