Ver Fonte

distribution/xfer: fix pull progress message

This message accidentally changed in ac2a028dcc05532109e14f8af105ca42c0abf1f3
because my IDE's "refactor tool" was a bit over-enthusiastic. It also went and
updated the tests accordingly, so CI didn't catch this :)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn há 1 ano atrás
pai
commit
ebf3f8c7fe
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      distribution/xfer/download.go
  2. 2 2
      distribution/xfer/download_test.go

+ 1 - 1
distribution/xfer/download.go

@@ -364,7 +364,7 @@ func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
 				return
 			}
 
-			progress.Update(progressOutput, descriptor.ID(), "PullOptions complete")
+			progress.Update(progressOutput, descriptor.ID(), "Pull complete")
 
 			if withRegistered, ok := descriptor.(DigestRegisterer); ok {
 				withRegistered.Registered(d.layer.DiffID())

+ 2 - 2
distribution/xfer/download_test.go

@@ -316,8 +316,8 @@ func TestSuccessfulDownload(t *testing.T) {
 			if receivedProgress[d.ID()].Action != "Already exists" {
 				t.Fatalf("did not get 'Already exists' message for %v", d.ID())
 			}
-		} else if receivedProgress[d.ID()].Action != "PullOptions complete" {
-			t.Fatalf("did not get 'PullOptions complete' message for %v", d.ID())
+		} else if receivedProgress[d.ID()].Action != "Pull complete" {
+			t.Fatalf("did not get 'Pull complete' message for %v", d.ID())
 		}
 
 		if rootFS.DiffIDs[i] != descriptor.expectedDiffID {