Skip to content

Commit b8784d0

Browse files
ganglyuvenu-nexthop
authored andcommitted
Update timeout for gnmi subscribe API (sonic-net#19019)
What is the motivation for this PR? test_gnmi_configdb_streaming_onchange_01 failed on KVM DUT, and test logs show that it needs more than 30 seconds to get all the results from GNMI server. How did you do it? Update timeout from 30 seconds to 120 seconds. How did you verify/test it? Run gnmi end to end test.
1 parent 1190624 commit b8784d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/gnmi/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def gnmi_subscribe_streaming_onchange(duthost, ptfhost, path_list, count):
431431
ip = duthost.mgmt_ip
432432
port = env.gnmi_port
433433
cmd = 'python /root/gnxi/gnmi_cli_py/py_gnmicli.py '
434-
cmd += '--timeout 30 '
434+
cmd += '--timeout 120 '
435435
cmd += '-t %s -p %u ' % (ip, port)
436436
cmd += '-xo sonic-db '
437437
cmd += '-rcert /root/gnmiCA.pem '

0 commit comments

Comments
 (0)