Skip to content

Commit 3dccf59

Browse files
committed
Fix ordering bug in test code that shows up in MySQL but not in SQLite
- Legacy-Id: 5151
1 parent f22b14a commit 3dccf59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/sync/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def test_rfceditor_undo(self):
441441
self.assertEquals(draft.get_state("draft-rfceditor"), None)
442442

443443
# let's just test we can recover
444-
e = DeletedEvent.objects.all().order_by("-time")[0]
444+
e = DeletedEvent.objects.all().order_by("-time", "-id")[0]
445445

446446
e.content_type.model_class().objects.create(**json.loads(e.json))
447447
self.assertTrue(StateDocEvent.objects.filter(desc="First", doc=draft))

0 commit comments

Comments
 (0)