summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2025-02-18 19:57:45 +0000
committer Eric Biggers <ebiggers@google.com> 2025-02-18 20:25:06 +0000
commitb4d454253171b62d1245f66072aef57e1df94266 (patch)
tree243510cad13dfb2f0d3ca163d58ec2485333294a /api/api_test.go
parent755f3741f4e5950e81d140f9613cb64e8d64c054 (diff)
Handle teardown after incomplete setup in locksettings tests
In JUnit, @After methods are called even if a @Before method throws an exception. Therefore @After methods need to handle the case where objects created by @Before have not been created yet. This only makes a difference when there is already a test failure, but this prevents a misleading error message. Bug: 396780038 Test: atest FrameworksServicesTests:com.android.server.locksettings Change-Id: Ia07bca84849dfe7fac54e89abdba2cfb5a823cae
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions