Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestISISProtocol(t *testing.T) {

// Starting ISIS protocol takes some time to converge. So we may not receive ISIS data
// in the first sample after configuration.
samples := niStream.Nexts(5)
samples := niStream.Nexts(10)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Increasing the sample count to 10 introduces inconsistencies with the test documentation and reporting:

  • README Inconsistency: The README.md (Test 3) specifies that telemetry should be received within 5 samples. Per the repository guidelines (line 29), the code must align with the test plan. Please update the README to reflect the new requirement.
  • Error Message Inconsistency: The error message on line 149 (not in this diff) mentions 3 samples. This should be updated to match the code to avoid confusion during failures.
  • Efficiency: niStream.Nexts(10) blocks for the full duration of 10 intervals (approx. 110s) before processing. Consider refactoring the loop to call niStream.Next() individually to allow the test to exit as soon as the first valid sample is received, rather than always waiting for the maximum count.
References
  1. Code should follow the steps and requirements documented in the test README.md. (link)


updated := false
for idx, sample := range samples {
Expand Down
Loading