Skip to content

Commit

Permalink
distribution/xfer: fix pull progress message
Browse files Browse the repository at this point in the history
This message accidentally changed in ac2a028
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>
  • Loading branch information
thaJeztah committed Feb 29, 2024
1 parent a242208 commit ebf3f8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribution/xfer/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions distribution/xfer/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ebf3f8c

Please sign in to comment.