Move VPN hardware assumption check to the end of setup

tearDown expect setUp is executed.
So move VPN hardware assumption check after all the setUps

Test: atest HostsideVpnTests
Bug: 330070197
Change-Id: I671897764908dc0188bcb2aef7177f1e4d573a8f
This commit is contained in:
Motomu Utsumi 2024-04-19 14:05:08 +09:00
commit d992ae133a

View file

@ -257,7 +257,6 @@ public class VpnTest {
@Before
public void setUp() throws Exception {
assumeTrue(supportedHardware());
mNetwork = null;
mTestContext = getInstrumentation().getContext();
mTargetContext = getInstrumentation().getTargetContext();
@ -272,6 +271,7 @@ public class VpnTest {
mDevice.waitForIdle();
mCtsNetUtils = new CtsNetUtils(mTestContext);
mPackageManager = mTestContext.getPackageManager();
assumeTrue(supportedHardware());
}
@After