Skip to content

Commit

Permalink
oh my god theres even more of them
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jul 8, 2024
1 parent c4c8845 commit 04572ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nexus/tests/integration_tests/instances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@ async fn test_instances_create_reboot_halt(

let instance = instance_next;
instance_simulate(nexus, &instance_id).await;
let instance_next = instance_get(&client, &instance_url).await;
assert_eq!(instance_next.runtime.run_state, InstanceState::Stopped);
let instance_next =
instance_wait_for_state(client, instance_id, InstanceState::Stopped)
.await;
assert!(
instance_next.runtime.time_run_state_updated
> instance.runtime.time_run_state_updated
Expand Down Expand Up @@ -516,8 +517,9 @@ async fn test_instances_create_reboot_halt(
// assert_eq!(error.message, "cannot reboot instance in state \"stopping\"");
let instance = instance_next;
instance_simulate(nexus, &instance_id).await;
let instance_next = instance_get(&client, &instance_url).await;
assert_eq!(instance_next.runtime.run_state, InstanceState::Stopped);
let instance_next =
instance_wait_for_state(client, instance_id, InstanceState::Stopped)
.await;
assert!(
instance_next.runtime.time_run_state_updated
> instance.runtime.time_run_state_updated
Expand Down

0 comments on commit 04572ed

Please sign in to comment.