tests/OBSLocal: randomString() use fixed length of 2.
Reduce random consumption as test environment lacks input.
This commit is contained in:
parent
57ebf5a5fe
commit
c34a58061b
@ -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)])
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user