android_packages_modules_Co.../staticlibs/testutils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jimi Chen 7e922cf917 Fix lambda returning set instead of boolean
The `expect_with_retry` utility expects the lambda to return a
boolean value. However, the previous implementation wrapped the
comparison result `apf_utils.get_matched_packet_counts(...) == 1`
inside a set `{...}`.

This caused the lambda to return a set (e.g., `{True}` or `{False}`),
which is truthy if non-empty, but not the actual boolean result.
This commit removes the unnecessary set wrapper, ensuring the lambda
directly returns the boolean outcome of the packet count comparison

Flag: EXEMPT test only
Bug: 419427388
Test: atest CtsConnectivityMultiDevicesTestCases:ApfV6Test
Change-Id: Idd77d905e5be7933b3213df5cb772773286becfa
2025-07-22 08:47:03 +00:00
..
app/connectivitychecker Make a base class for testable callbacks 2025-06-10 17:22:01 +09:00
devicetests Fix permissions in RestoreEthernetRule 2025-07-17 13:54:12 -07:00
host Fix lambda returning set instead of boolean 2025-07-22 08:47:03 +00:00
hostdevice/com/android Fix typo 2025-06-24 08:33:51 -07:00
Android.bp Add a ContentResolverWithFakeSettingsProvider class to testutils. 2025-06-28 11:06:53 +09:00