Skip to content

Commit

Permalink
missed local commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Jul 5, 2024
1 parent 4dd16e3 commit 28866f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/api2/assets/websocket/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ def reboot(ip, service_name=None):
"""Reboot the TrueNAS at the specified IP.
Return when it has rebooted."""
with client(host_ip=ip) as c:
c.call('system.reboot')
# we call this method to "reboot" the system
# because it causes the system to go offline
# immediately (kernel panic). We don't care
# about clean shutdowns here, we're more
# interested in the box rebooting as quickly
# as possible.
c.call('failover.become_passive')

# Wait for server to reappear
ping_count, reappear_time = 1, 120
Expand Down

0 comments on commit 28866f9

Please sign in to comment.