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

Skip to content
Commit 0b6b6f53 authored by Darrell Shi's avatar Darrell Shi
Browse files

Improve CommunalBackupHelperTest stability

Sometimes setUp() can fail, and tearDown() is still invoked, leading to
an exception that lateinit variables may not have been initialized yet.
This change fixes that by using onTearDown() next to the initialation of
lateinit and only clean up if they have been initialized.

Test: atest CommunalBackupHelperTest
Bug: 379255212
Flag: EXEMPT improve unit test only
Change-Id: I3205dba6abcc7b91d145c5f5432b59992515c60b
parent d51ffdf0
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