Skip to content

Commit

Permalink
updated timeout value to 60seconds for the await call (#2045)
Browse files Browse the repository at this point in the history
* updated timeout value to 30seconds for the await call

* updated timeout value to 60seconds for the await call

---------

Co-authored-by: guoshiuan <[email protected]>
  • Loading branch information
manan-patel and guoshiuan authored Aug 22, 2023
1 parent 230f006 commit 88aff22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func TestEstablishAndDisconnect(t *testing.T) {

// Verify if Cease notification is received on DUT.
t.Log("Verify Error code received on DUT: BgpTypes_BGP_ERROR_CODE_CEASE")
_, codeok := gnmi.Watch(t, dut, nbrPath.Messages().Received().LastNotificationErrorCode().State(), 10*time.Second, func(val *ygnmi.Value[oc.E_BgpTypes_BGP_ERROR_CODE]) bool {
_, codeok := gnmi.Watch(t, dut, nbrPath.Messages().Received().LastNotificationErrorCode().State(), 60*time.Second, func(val *ygnmi.Value[oc.E_BgpTypes_BGP_ERROR_CODE]) bool {
code, present := val.Val()
t.Logf("On disconnect, received code status %v", present)
return present && code == oc.BgpTypes_BGP_ERROR_CODE_CEASE
Expand Down

0 comments on commit 88aff22

Please sign in to comment.