add note per review

This commit is contained in:
Vishvananda Ishaya 2011-03-28 16:50:33 -07:00
parent 233fd09201
commit 3a39fb7b09
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ class VolumeTests(base.UserSmokeTestCase):
"cat /sys/class/block/%s/size" % self.device.rpartition('/')[2])
out = stdout.read().strip()
conn.close()
# NOTE(vish): 1G bytes / 512 bytes per block
expected_size = 1024 * 1024 * 1024 / 512
self.assertEquals('%s' % (expected_size,), out,
'Volume is not the right size: %s %s. Expected: %s' %