summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
diff options
context:
space:
mode:
authorpaulhu <paulhu@google.com>2021-09-02 06:06:59 +0000
committerpaulhu <paulhu@google.com>2021-10-19 18:27:19 +0800
commitc344c9fb9c9300ce475e4a2bc2ddbaf23c30cb4e (patch)
tree6f611d333363c202ae9ff4d10a228fef4f97dc74 /tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
parent39379a40bd323cc91355bc24f2b23f1d2656db4a (diff)
Specify which callback is unexpected in testMobileDataPreferredUids
This test is flaky due to assertNoCallback(). Because this method expects no any callback received but the wifi network may update its capabilities during testing and trigger onCapabilitiesChanged() to cause test failed. Thus, these callbacks should be ignored in the tests. Replace the assertNoCallback to assertNoCallbackThat with callback type specified to deflake tests. Also align the available callback verification in the test to avoid confusion. Fix: 198367703 Test: atest android.net.cts.ConnectivityManagerTest\ --iterations 20 Change-Id: Ifde5e9730823c3b6f32590cc436cc4ba11d2b36e
Diffstat (limited to 'tests/unit/java/android/net/KeepalivePacketDataUtilTest.java')
0 files changed, 0 insertions, 0 deletions