Fix race condition in pcap log test.

The test_single_file_write() contains a sleep, waiting for the expected
log file to be present. It occasionally fails at a low rate, so modifying
the test to wait in a loop for the file.

Bug: 286450563
Test: atest libuwb_core_test libuwb_uci_packet_tests libuwb_uci_jni_rust_tests
Change-Id: I54e82df1a70d42d8b569fdc365e97b71b633854e
1 file changed
tree: 9d718362ead33c5df928518c07f44441ee34329f
  1. src/
  2. .gitignore
  3. Android.bp
  4. DIR_METADATA
  5. METADATA
  6. MODULE_LICENSE_APACHE2
  7. NOTICE
  8. OWNERS
  9. OWNERS_chromeos
  10. PREUPLOAD.cfg