Skip to content

Commit db6075f

Browse files
author
Kazuyoshi Kato
committed
snapshot/devmapper: log actual values to investigate containerd#4965
This test has been flaky in GitHub Actions. This change logs the values from devmapper to further investigate the issue. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
1 parent 49c5c14 commit db6075f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

snapshots/devmapper/snapshotter_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func testUsage(t *testing.T, snapshotter snapshots.Snapshotter) {
136136
assert.NilError(t, err)
137137

138138
// Should be at least 1 MB + fs metadata
139-
assert.Assert(t, layer2Usage.Size > sizeBytes)
140-
assert.Assert(t, layer2Usage.Size < sizeBytes+256*dmsetup.SectorSize)
139+
assert.Check(t, layer2Usage.Size > sizeBytes,
140+
"%d > %d", layer2Usage.Size > sizeBytes)
141+
assert.Check(t, layer2Usage.Size < sizeBytes+256*dmsetup.SectorSize,
142+
"%d < %d", layer2Usage.Size < sizeBytes+256*dmsetup.SectorSize)
141143
}

0 commit comments

Comments
 (0)