medic / cht-conf-test-harness

A test harness for configurations of Community Health Toolkit applications
6 stars 3 forks source link

Webmediaplayer error when running tests #235

Open jonathanbataire opened 1 year ago

jonathanbataire commented 1 year ago

Sometimes run into the following error when running thess tests. Seem to be a memory leak bug in chromium

jonathanbataire commented 1 year ago

recently been working on this PR https://github.com/medic/config-ug-vht/pull/803 which introduces a geopoint widget in forms this has made this issue more persistent. Found some solutions

problem:

Rapidly referencing harness object (like in a loop), while filling in forms with widgets, without restarting harness.

solution:

kennsippell commented 1 year ago

Hey @jonathanbataire . I think harness.clear() in between tests should be sufficient between tests. Hopefully you don't actually have to start/stop. Are you finding this to be the case?

jonathanbataire commented 1 year ago

Hey @jonathanbataire . I think harness.clear() in between tests should be sufficient between tests. Hopefully you don't actually have to start/stop. Are you finding this to be the case?

wasnt enough i think, its always been in the beforeEach but would still fail ended up splitting the problematic tests into separate test suites about 2 files