Skip to content

Commit 2ac33d7

Browse files
author
Kazuyoshi Kato
committed
test: fix assert.Check's argumets to show its parameters correctly
The change I made at db6075f didn't show its parameters correctly. Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 4054230 commit 2ac33d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

snapshots/devmapper/snapshotter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func testUsage(t *testing.T, snapshotter snapshots.Snapshotter) {
137137

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

0 commit comments

Comments
 (0)