Skip to content

[P0] [CI] Adjust drifting test #4058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/nerdctl/image/image_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestImageHistory(t *testing.T) {
assert.Equal(t, len(history), 2, info)
assert.Equal(t, history[0].Size, "0B", info)
// FIXME: how is this going to age?
assert.Equal(t, history[0].CreatedSince, "3 years ago", info)
assert.Equal(t, history[0].CreatedSince, "4 years ago", info)
assert.Equal(t, history[0].Snapshot, "<missing>", info)
assert.Equal(t, history[0].Comment, "", info)

Expand All @@ -109,7 +109,7 @@ func TestImageHistory(t *testing.T) {
assert.Equal(t, history[1].CreatedBy, "/bin/sh -c #(nop) ADD file:3b16ffee2b26d8af5…", info)

assert.Equal(t, history[1].Size, "5.947MB", info)
assert.Equal(t, history[1].CreatedSince, "3 years ago", info)
assert.Equal(t, history[1].CreatedSince, "4 years ago", info)
assert.Equal(t, history[1].Snapshot, "sha256:56bf55b8eed1f0b4794a30386e4d1d3da949c…", info)
assert.Equal(t, history[1].Comment, "", info)
}),
Expand Down
Loading