1
0
Fork 0
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:
Alexander Morozov 2016-03-15 20:59:56 -07:00
commit aa76ddd353

View file

@ -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