Skip to content

Commit

Permalink
Fix a gridfs unittest failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
behackett committed May 4, 2011
1 parent 4c0f650 commit 69643ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_gridfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def test_get_last_version(self):

def test_get_last_version_with_metadata(self):
a = self.fs.put("foo", filename="test", author="author")
time.sleep(0.01)
b = self.fs.put("bar", filename="test", author="author")

self.assertEqual("bar", self.fs.get_last_version(author="author").read())
Expand All @@ -189,6 +190,7 @@ def test_get_last_version_with_metadata(self):
self.fs.delete(a)

a = self.fs.put("foo", filename="test", author="author1")
time.sleep(0.01)
b = self.fs.put("bar", filename="test", author="author2")

self.assertEqual("foo", self.fs.get_last_version(author="author1").read())
Expand Down

0 comments on commit 69643ea

Please sign in to comment.