[build] Fix failing test.

(cherry picked from commit 01ccf87845874d9e9f05537191321b598e5547f2)