Fix up a couple unit tests that relied on database ordering.

Review Request #8691 — Created Jan. 31, 2017 and submitted — Latest diff uploaded

Information

Review Board
release-3.0.x
dd819b3...

Reviewers

There were a couple unit tests that checked the order of comments returned in a
query after saving. This test was somewhat fragile to the way that the database
backend would decide to return them, and had started failing for me. Since we
care specifically about the order of the timestamps, I've fixed up the tests to
provide order_by('timestamp') and the tests pass as expected.

Ran unit tests.

    Loading...