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

Commit 372e89d2 authored by Les Lee's avatar Les Lee
Browse files

wifi: Fix unit test error

The default timeout value is changed to -1 after T.
Since the migration module is not a part of mainline.
So fix unit test it directly for T unit test error.

For old device, it should still use old unit test version with old value and get pass
because the getShutdownTimeoutMillis() returns old value on old build.

Bug: 213289672
Test: atest -c android.net.wifi.SoftApConfToXmlMigrationUtilTest#testConversion
Change-Id: Ia14b019101b8e78fc3f7374c907453508dfea420
parent a7f7cd89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public class SoftApConfToXmlMigrationUtilTest {
                    + "<int name=\"MaxNumberOfClients\" value=\"0\" />\n"
                    + "<boolean name=\"ClientControlByUser\" value=\"false\" />\n"
                    + "<boolean name=\"AutoShutdownEnabled\" value=\"true\" />\n"
                    + "<long name=\"ShutdownTimeoutMillis\" value=\"0\" />\n"
                    + "<long name=\"ShutdownTimeoutMillis\" value=\"-1\" />\n"
                    + "<BlockedClientList />\n"
                    + "<AllowedClientList />\n"
                    + "</SoftAp>\n"