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

Commit 09d3fc3f authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update NPMSTest to avoid crashes during tear down.

If the policyDir is not properly initialized, the test can crash during
tear down. This can lead to subsequent tests failing as the other tear
down steps will be skipped. To fix this we just check if it is null
before attempting to delete files.

Bug: 432481295
Test: atest services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Flag: TEST_ONLY
Change-Id: I68ab305b938df0d54949b7d3951c9b7d2a3f3562
parent daeb7668
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