Skip to content

Commit

Permalink
Bug Fixes Test Coverage [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
RashulChutani committed Dec 17, 2022
1 parent e0bd4db commit c0d3398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions determine_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def determine_tests_line(_tests_file, _line, _tests_to_run):
old_tests = tests["index_mapping"]
added_tests = set(new_tests) - set(old_tests)
added_tests = list(added_tests)
if len(added_tests) > 10:
added_tests = added_tests[:10]
# Add these new_tests in the Mapping
old_num_tests = len(old_tests)
tests["index_mapping"] += added_tests
Expand Down
4 changes: 2 additions & 2 deletions run_tests_CLI/cron_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

test_names = list(set(test_names))

# We run 10 tests in each iteration of the cron job
# We run 50 tests in each iteration of the cron job
num_tests = len(test_names)
tests_per_run = 10
tests_per_run = 50
start = run_iter * tests_per_run
end = (run_iter + 1) * tests_per_run
with open("tests_to_run", "w") as f:
Expand Down

0 comments on commit c0d3398

Please sign in to comment.