Skip to content

Commit d6e9f99

Browse files
committed
Tune test
Signed-off-by: Qi Luo <[email protected]>
1 parent f484a2b commit d6e9f99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_fdb_warm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ def test_fdb_notifications(dvs):
109109
assert ok, str(extra)
110110

111111
# enable warm restart
112-
dvs.runcmd("config warm_restart enable swss")
112+
(exitcode, result) = dvs.runcmd("config warm_restart enable swss")
113+
assert exitcode == 0
113114

114115
# freeze orchagent for warm restart
115-
(exitcode, result) = dvs.runcmd("/usr/bin/orchagent_restart_check")
116+
(exitcode, result) = dvs.runcmd("/usr/bin/orchagent_restart_check")
116117
assert result == "RESTARTCHECK succeeded\n"
117118
time.sleep(2)
118119

@@ -170,3 +171,5 @@ def test_fdb_notifications(dvs):
170171
finally:
171172
# enable warm restart
172173
dvs.runcmd("config warm_restart enable swss")
174+
# slow down crm polling
175+
dvs.runcmd("crm config polling interval 10000")

0 commit comments

Comments
 (0)