Commit 6541a53
Use >= comparison for payload count to handle extra telemetry
The check `if (currentCount === expectedCount)` was too strict - if extra telemetry arrived (e.g., from previous tests or automatic telemetry), the count would never match exactly and the test would timeout.
Changed to `if (payloadStr.length >= expectedCount)` to proceed when we have at least the expected number of items. We validate the first item which should be from the current test given our baseline tracking.
This makes the test more robust against:
- Extra telemetry arriving after expected count is reached
- Timing variations in when responses arrive
- Background/automatic telemetry interfering with counts
Combined with baseline tracking, this should properly isolate each test's validation.
Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com>1 parent e7daab1 commit 6541a53
1 file changed
Lines changed: 24 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
2045 | | - | |
| 2045 | + | |
2046 | 2046 | | |
2047 | 2047 | | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
2054 | | - | |
2055 | | - | |
2056 | | - | |
2057 | | - | |
2058 | | - | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
2070 | | - | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2071 | 2071 | | |
2072 | 2072 | | |
2073 | 2073 | | |
| |||
0 commit comments