Use require.Eventually instead of manual polling in tests
What does this MR do and why?
It uses https://pkg.go.dev/github.com/stretchr/testify/require#Eventually to refactor the tests
It uses https://pkg.go.dev/github.com/stretchr/testify/require#Eventually to refactor the tests