IMA-WorldHealth/sunfish

If an error occurs, close the browser

Closed this issue · 1 comments

DHIS2 is sometimes flakey, and the dashboards do not always render correctly or on time. We need to anticipate this and act accordingly. Currently, we do nothing. And if too many tests fail, chrome instances are kept around forever without actually being cleaned up, leading to system instability and out of memory errors.

If a page errors, we should close the browser.

Ideally, we should retry the request a couple of times to make sure that it actually failed. This may actually be an issue for the ima-worldhealth/coral repo.