Merge "Use correct MAX_LEN constant in agent functional tests"

This commit is contained in:
Jenkins 2014-06-27 09:09:18 +00:00 committed by Gerrit Code Review
commit 67d3d282f7

View File

@ -56,7 +56,7 @@ class BaseLinuxTestCase(base.BaseTestCase):
:param *args *kwargs: These will be passed to the create function.
"""
while True:
name = self.get_rand_name(n_const.DEV_NAME_MAX_LEN, name_prefix)
name = self.get_rand_name(n_const.DEVICE_NAME_MAX_LEN, name_prefix)
try:
return creation_func(name, *args, **kwargs)
except RuntimeError: