[build] Attempting to fix flickering test.

(cherry picked from commit 88f11d245cefeca5f3aed67438fa1bd9891ad7a9)