Hack to deal with race condition in test

This test passes without modification when run with sqllite but needs the
sleep to pass with postgres. I'm not too worried about the race condition
in production because the space between writes IRL is likely to be seconds,
not milliseconds.

Addresses #625