mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #21233 from aaronlehmann/testtransfer-flakiness
Fix flaky test TestTransfer
This commit is contained in:
commit
aa76ddd353
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func TestTransfer(t *testing.T) {
|
|||
if p.Current != 0 {
|
||||
t.Fatalf("got unexpected progress value: %d (expected 0)", p.Current)
|
||||
}
|
||||
} else if p.Current != val+1 {
|
||||
} else if p.Current <= val {
|
||||
t.Fatalf("got unexpected progress value: %d (expected %d)", p.Current, val+1)
|
||||
}
|
||||
receivedProgress[p.ID] = p.Current
|
||||
|
|
Loading…
Reference in a new issue