queerviolet / bones

MIT License
36 stars 119 forks source link

Synchronize db for tests #33

Closed glebec closed 7 years ago

glebec commented 7 years ago

There is a race condition in the test suites — they do not wait for the db to sync before sending API requests which will ultimately hit query the db. Should add a line preventing this in a before or even better beforeEach.