Skip to content

Commit 8f5e5b3

Browse files
ganglyumssonicbld
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 2f80ed7 commit 8f5e5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)