Skip to content

Commit 5d8be4b

Browse files
author
Paul Breaux
committed
Adding doc for user to understand how I am using the pollster in the failover tests.
1 parent 9c0576d commit 5d8be4b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/functional/tm/sys/test_failover.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ def test_exec_cmd(self, mgmt_root, teardown_device_failover_state):
9393
f = mgmt_root.tm.sys.failover
9494
f.exec_cmd('run', offline=True)
9595
get_activation_state(mgmt_root)
96+
# Use the pollster to check for expected state. The pollster uses
97+
# a method which checks for any exception. If one is found, it keeps
98+
# trying.
9699
pollster(check_device_state_as_expected)(mgmt_root, 'forced-offline')
97100
fl.refresh()
98101
pp(fl.raw)

0 commit comments

Comments
 (0)