mirror of
https://github.com/moby/moby.git
synced 2026-07-25 00:37:00 +00:00
distribution/xfer: improve test reporting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -304,11 +304,11 @@ func TestSuccessfulDownload(t *testing.T) {
|
||||
descriptor := d.(*mockDownloadDescriptor)
|
||||
|
||||
if descriptor.diffID != "" {
|
||||
if receivedProgress[d.ID()].Action != "Already exists" {
|
||||
t.Fatalf("did not get 'Already exists' message for %v", d.ID())
|
||||
if actual := receivedProgress[d.ID()].Action; actual != "Already exists" {
|
||||
t.Fatalf("did not get 'Already exists' message for %v: got: %s", d.ID(), actual)
|
||||
}
|
||||
} else if receivedProgress[d.ID()].Action != "Pull complete" {
|
||||
t.Fatalf("did not get 'Pull complete' message for %v", d.ID())
|
||||
} else if actual := receivedProgress[d.ID()].Action; actual != "Pull complete" {
|
||||
t.Fatalf("did not get 'Pull complete' message for %v: got: %s", d.ID(), actual)
|
||||
}
|
||||
|
||||
if rootFS.DiffIDs[i] != descriptor.expectedDiffID {
|
||||
|
||||
Reference in New Issue
Block a user