Merge pull request #21603 from aaronlehmann/testtransfer-flakiness-2
Fix flaky test TestTransfer (take 2) Upstream-commit: d02e24f27d761c2f24c0a5f4dfe1fbfe692e5f14 Component: engine
This commit is contained in:
@ -37,11 +37,7 @@ func TestTransfer(t *testing.T) {
|
||||
go func() {
|
||||
for p := range progressChan {
|
||||
val, present := receivedProgress[p.ID]
|
||||
if !present {
|
||||
if p.Current != 0 {
|
||||
t.Fatalf("got unexpected progress value: %d (expected 0)", p.Current)
|
||||
}
|
||||
} else if p.Current <= val {
|
||||
if present && p.Current <= val {
|
||||
t.Fatalf("got unexpected progress value: %d (expected %d)", p.Current, val+1)
|
||||
}
|
||||
receivedProgress[p.ID] = p.Current
|
||||
|
||||
Reference in New Issue
Block a user