commit | e380bc0000801d632d86bcce04112114b7599fb6 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue Apr 02 14:44:06 2024 +0000 |
committer | Patrick Rohr <prohr@google.com> | Tue Apr 02 14:44:08 2024 +0000 |
tree | 92dc8ee9f1f2a1db9285b3a6d6e85ac8d0376aee | |
parent | 8b15cc8f8eba1b775b8552b4702c58f7a4c34a1d [diff] |
check lateinit property ifname isInitialized in tearDown Bug: 332464546 Change-Id: I5085ad42c9456e89974c1fc33149e468483e340f Test: TH
diff --git a/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt b/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt index 0cdd5a8..68766e6 100644 --- a/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt +++ b/tests/cts/net/src/android/net/cts/ApfIntegrationTest.kt
@@ -101,7 +101,9 @@ if (::networkCallback.isInitialized) { cm.unregisterNetworkCallback(networkCallback) } - runShellCommandOrThrow("cmd network_stack apf $ifname resume") + if (::ifname.isInitialized) { + runShellCommandOrThrow("cmd network_stack apf $ifname resume") + } } fun getApfCapabilities(): ApfCapabilities {