Fix flaky background fetch UT

The test asserted with a very strict timeline that `stopWork()` would
guarantee that no `runBackgroundFetch()` method would still be running,
but the addition of the logger introduced a few milliseconds of delay.

Test: atest com.android.adservices.service.customaudience.BackgroundFetchWorkerTest#testStopWorkGracefullyStopsBackgroundFetch --iterations 100
Bug: 260211148
Change-Id: I32c1ccbf36cbc547ddef2d038cfc5c6d1b057e70
2 files changed
tree: f057ada045abcafe37ef8381a3672ab6c908c359
  1. adservices/
  2. apex/
  3. sdksandbox/
  4. groups
  5. OWNERS
  6. PREUPLOAD.cfg
  7. project.config