Skip to content

Commit 333d05d

Browse files
author
Zhou Hao
authored
Merge pull request #595 from kinvolk/alban/blkio-leafWeight
Fix condition in BlockIO test
2 parents fdbc3d6 + d412a17 commit 333d05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/util/linux_resources_blkio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func ValidateLinuxResourcesBlockIO(config *rspec.Spec, state *rspec.State) error
4343
t.Ok(*wd.Weight == *device.Weight, fmt.Sprintf("blkio weight for %d:%d is set correctly", device.Major, device.Minor))
4444
t.Diagnosticf("expect: %d, actual: %d", *device.Weight, *wd.Weight)
4545

46-
t.Ok(*wd.LeafWeight != *device.LeafWeight, fmt.Sprintf("blkio leafWeight for %d:%d is set correctly", device.Major, device.Minor))
46+
t.Ok(*wd.LeafWeight == *device.LeafWeight, fmt.Sprintf("blkio leafWeight for %d:%d is set correctly", device.Major, device.Minor))
4747
t.Diagnosticf("expect: %d, actual: %d", *device.LeafWeight, *wd.LeafWeight)
4848
}
4949
}

0 commit comments

Comments
 (0)