Skip to content

Commit

Permalink
[release-v1.6][tests]: Fix test which is broken only when running und…
Browse files Browse the repository at this point in the history
…er postgres.
  • Loading branch information
David Read committed Feb 24, 2012
1 parent cdcc5b2 commit 77e070c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/tests/functional/api/model/test_revisions.py
Expand Up @@ -34,7 +34,7 @@ def test_register_get_ok(self):
assert_equal(revs_result, [rev.id for rev in revs])

def test_entity_get_ok(self):
rev = model.repo.history().all()[-2] # 2nd revision is the creation of pkgs
rev = model.repo.history().all()[0] # newest revision is the creation of pkgs
assert rev.id
assert rev.timestamp.isoformat()
offset = self.revision_offset(rev.id)
Expand Down

0 comments on commit 77e070c

Please sign in to comment.