tests/OBSLocal: randomString() use fixed length of 2.

Reduce random consumption as test environment lacks input.
This commit is contained in:
Jimmy Berry 2019-11-07 10:12:07 -06:00
parent 57ebf5a5fe
commit c34a58061b

View File

@ -158,7 +158,7 @@ class TestCase(unittest.TestCase):
if prefix and not prefix.endswith('_'):
prefix += '_'
if not length:
length = random.randint(10, 30)
length = 2
return prefix + ''.join([random.choice(string.ascii_letters) for i in range(length)])