Skip to content

Commit

Permalink
added 10 seconds wait before checking the terminal output
Browse files Browse the repository at this point in the history
  • Loading branch information
midays committed May 15, 2024
1 parent 17c6f0e commit f8656e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/IDE/VisualStudioCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ def run_simple_analysis(self, configuration_name: str):
self.press_keys("enter")

# Verify analysis has started
time.sleep(3)
# todo: instead of time.sleep(10),
# implement a function to keep checking if the "running source code analysis" is found
# in the terminal output with a default timeout
time.sleep(10)
terminal_lines = self.copy_terminal_output()
log_map = parse_log_string(terminal_lines[6])
print("=====================================================")
print("terminal lines: ")
print(terminal_lines)
print("=====================================================")

assert is_date_today(log_map["time"])
assert log_map["msg"] == "running source code analysis"

Expand Down

0 comments on commit f8656e9

Please sign in to comment.