Skip to content

Commit

Permalink
fix(?) illumos-only tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jun 24, 2024
1 parent 3e98030 commit 336f845
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions sled-agent/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ impl Instance {
vmm_runtime,
propolis_addr,
migration_id,
..
} = state;

let InstanceManagerServices {
Expand Down Expand Up @@ -1716,19 +1715,13 @@ mod tests {

InstanceInitialState {
hardware,
instance_runtime: InstanceRuntimeState {
propolis_id: Some(propolis_id),
dst_propolis_id: None,
migration_id: None,
gen: Generation::new(),
time_updated: Default::default(),
},
vmm_runtime: VmmRuntimeState {
state: VmmState::Starting,
gen: Generation::new(),
time_updated: Default::default(),
},
propolis_addr,
migration_id: None,
}
}

Expand Down Expand Up @@ -2051,9 +2044,9 @@ mod tests {
let propolis_id = PropolisUuid::new_v4();
let InstanceInitialState {
hardware,
instance_runtime,
vmm_runtime,
propolis_addr,
migration_id,
} = fake_instance_initial_state(propolis_id, propolis_addr);

let metadata = InstanceMetadata {
Expand All @@ -2065,7 +2058,6 @@ mod tests {
instance_id,
propolis_id,
hardware,
instance_runtime,
vmm_runtime,
propolis_addr,
metadata,
Expand Down

0 comments on commit 336f845

Please sign in to comment.