Skip to content

Commit

Permalink
RT-2.1: Updating deadline to avoid intermittent failure (openconfig#2380
Browse files Browse the repository at this point in the history
)

1. Updating deadline from 15 seconds to 30 seconds to avoid intermittent failures
   2. Fixing typo in the log message.

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
  • Loading branch information
trathod1 authored Nov 28, 2023
1 parent 78d13ff commit e8f5fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,14 @@ func TestBasic(t *testing.T) {
// haven't been exchanging IS-IS messages.
// There are about 3 RPCs executed in quick succession in this block.
// Increasing the wait-time value to accommodate this.
deadline = time.Now().Add(time.Second * 15)
deadline = time.Now().Add(time.Second * 30)
for _, vd := range []check.Validator{
check.NotEqual(pCounts.Csnp().Processed().State(), uint32(0)),
check.NotEqual(pCounts.Lsp().Processed().State(), uint32(0)),
} {
t.Run(vd.RelPath(pCounts), func(t *testing.T) {
if err := vd.AwaitUntil(deadline, ts.DUTClient); err != nil {
t.Fatalf("No messages in active adjacency after 5s: %v", err)
t.Fatalf("No messages in active adjacency after 30s: %v", err)
}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ func TestBasic(t *testing.T) {
// There are about 3 RPCs executed in quick succession in this block.
// Increasing the wait-time value to accommodate this.

deadline = time.Now().Add(time.Second * 15)
deadline = time.Now().Add(time.Second * 30)
for _, vd := range []check.Validator{
check.NotEqual(pCounts.Csnp().Processed().State(), uint32(0)),
check.NotEqual(pCounts.Lsp().Processed().State(), uint32(0)),
} {
t.Run(vd.RelPath(pCounts), func(t *testing.T) {
if err := vd.AwaitUntil(deadline, ts.DUTClient); err != nil {
t.Fatalf("No messages in active adjacency after 5s: %v", err)
t.Fatalf("No messages in active adjacency after 30s: %v", err)
}
})
}
Expand Down

0 comments on commit e8f5fef

Please sign in to comment.