Clever/oplog-dump — pull request #9 by kvigen (2014-10-20 20:17:25+00:00)
Title: Fix race condition in test

Before this change we would do the following.
1. Get the time
2. Sleep two seconds
3. Insert into the database
4. Do other un-related stuff which included inserting one element into
the database
5. Check that if we looked for oplog entries 3 seconds after the time we
got in step1 we would only find the db entry from step4.

This doesn't always work because sometimes rounding meant that the entry we
inserted into the database in step3 was marked as three seconds after
the start time from step1. This meant we would randomly fail this test.

To solve this we now just sleep one second in step2 so that there's no
reasonable way that we could insert the db entry at the wrong time.