Skip to content

Commit

Permalink
Communicate after process terminates
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseSantosAMD committed Jul 10, 2023
1 parent 707826b commit dbac579
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/python/gui/source/tests/test_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,12 +1890,12 @@ def test_verbose_gui_flag_1():
"cpu_fast_func(long, int)",
]
captured_title_set = main_page.get_titles()
captured_output = t.communicate(timeout=120)[0].decode("utf-8")
driver.quit()

finally:
t.terminate()
t.wait()
captured_output = t.communicate(timeout=120)[0].decode("utf-8")

assert captured_title_set == expected_title_set
assert captured_output
Expand All @@ -1918,12 +1918,13 @@ def test_verbose_gui_flag_2():
driver = set_up()
main_page = page.MainPage(driver)
captured_title_set = main_page.get_titles()
captured_output = t.communicate(timeout=120)[0].decode("utf-8")
driver.quit()
finally:
t.terminate()
t.wait()

captured_output = t.communicate(timeout=120)[0].decode("utf-8")

assert captured_output
assert captured_title_set == expected_title_set

Expand Down

0 comments on commit dbac579

Please sign in to comment.