Fixes flappy tests on mongodb
Merge pull request #518 from doorkeeper-gem/tests

Fixes flappy tests on mongodb