Fixed test throwing unused variable warning
Merge pull request #17322 from vipulnsward/fix-test-warning

Fixed test throwing unused variable warning