Use correct MAX_LEN constant in agent functional tests
Closes-bug: #1334922 Change-Id: I62bd12da21e778f5cca97d6280c107575d912a81
This commit is contained in:
parent
da6b1280a7
commit
570240bc2e
@ -56,7 +56,7 @@ class BaseLinuxTestCase(base.BaseTestCase):
|
|||||||
:param *args *kwargs: These will be passed to the create function.
|
:param *args *kwargs: These will be passed to the create function.
|
||||||
"""
|
"""
|
||||||
while True:
|
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:
|
try:
|
||||||
return creation_func(name, *args, **kwargs)
|
return creation_func(name, *args, **kwargs)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user