commit | 0b6b6f5328a21e88d05a9ef7688ff6c1ce2029bb | [log] [tgz] |
---|---|---|
author | Darrell Shi <darrellshi@google.com> | Fri Nov 15 10:59:23 2024 -0800 |
committer | Darrell Shi <darrellshi@google.com> | Mon Nov 18 09:15:38 2024 -0500 |
tree | 83f00704f8493077526769346715af57fc7e9418 | |
parent | d51ffdf0c889c26ae193c6e44ce5f80675672c24 [diff] |
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