rspec-retryのexponential_backoffを使うと徐々にwaitの時間を延ばせる https://hai3.net/blog/rspec-retry-exponential-backoff/