[test][asan] Simplify loops in test

GitOrigin-RevId: 4b4250c75768e614d7384036c3c6050e185db50b
1 file changed