I do this exponential back-off + retry for eventually consistent things and it leads to reliable integration tests. However, I don't retry the assertion like he does; I retry getting the data I expect to be there, then assert on the result. Minor stuff, though, great technique.
https://sethorell.substack.com/p/how-not-to-test-with-dynamodb