Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e09d6919 authored by Doris Liu's avatar Doris Liu
Browse files

Handle exception in newly spawned thread in the test

Junit catches the throwable that happen in main thread, but not in
custom threads that tests have created and started. As a result,
Errors such as AssertionErrors had led to crashes in the tests.

This CL added error catching in the new thread. The error will then
be thrown in the test thread later on.

Also, transformed the class into JUnit4 tests.

BUG: 64095896
Test: ran core tests
Change-Id: I78a1cceb405d331f6796cf7ee5f7661dc5aec7b4
parent de9a012a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment