Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hop to the correct label when reboot is requested. #755

Merged
merged 1 commit into from Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion prog/vm/host_nexus.rb
Expand Up @@ -182,7 +182,7 @@ def before_run

label def wait
when_reboot_set? do
hop_reboot
hop_prep_reboot
end

nap 30
Expand Down
4 changes: 2 additions & 2 deletions spec/prog/vm/host_nexus_spec.rb
Expand Up @@ -218,9 +218,9 @@
expect { nx.wait }.to nap(30)
end

it "hops to reboot when needed" do
it "hops to prep_reboot when needed" do
expect(nx).to receive(:when_reboot_set?).and_yield
expect { nx.wait }.to hop("reboot")
expect { nx.wait }.to hop("prep_reboot")
end
end

Expand Down