Stop using Thread.sleep in test data generation

This unnecessarily makes the test take longer, and leads to flakes when
the sleep is too long.

Bug: 288324669
Test: atest
Change-Id: Ib833c9c1a191bff0d4c6ad3cd2f11108b58561db
1 file changed