revert to using big list for all api versions instead of generating one
This commit is contained in:
parent
285e1a1ccc
commit
cfacbd64a0
|
@ -140,9 +140,8 @@ def choose_api_version(selected_api_version, tester_min_version, tester_max_vers
|
|||
elif random.random() < 0.7:
|
||||
api_version = min_version
|
||||
elif random.random() < 0.9:
|
||||
api_versions = filter(lambda v: v >= min_version and v <= max_version,
|
||||
[13, 14, 16, 21, 22, 23, 100, 200, 300] + list(range(min(400, max_version), max_version + 1, 10)))
|
||||
api_version = random.choice(api_versions)
|
||||
api_version = random.choice([v for v in [13, 14, 16, 21, 22, 23, 100, 200, 300, 400, 410, 420, 430,
|
||||
440, 450, 460, 500, 510, 520] if v >= min_version and v <= max_version])
|
||||
else:
|
||||
api_version = random.randint(min_version, max_version)
|
||||
|
||||
|
|
Loading…
Reference in New Issue