Commit c35e35d
authored
fix(test): remove sync.Map iteration order dependency in TestUpdateModelReplicaMetrics (#2499)
Go's sync.Map.Range iteration order is unspecified, so the test flaked
whenever the decode pod was visited before the prefill pod. Index the
emitted metrics by pod name and assert per-pod instead of by slice
position.
Fixes #2497
Signed-off-by: varungupta <varungup90@gmail.com>1 parent c2c564c commit c35e35d
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
| |||
0 commit comments