From 2d9c2358906dea932d132164eb6752b5e9c91570 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Wed, 4 Dec 2019 13:45:30 +0100 Subject: [PATCH] Fixed flaky test --- api/tests/manage/test_serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tests/manage/test_serializers.py b/api/tests/manage/test_serializers.py index 37490383a..a80015ea9 100644 --- a/api/tests/manage/test_serializers.py +++ b/api/tests/manage/test_serializers.py @@ -176,7 +176,8 @@ def test_manage_domain_action_purge(factories, mocker): s.handle_purge(domains[0].__class__.objects.all()) on_commit.assert_called_once_with( - federation_tasks.purge_actors.delay, domains=[d.pk for d in domains] + federation_tasks.purge_actors.delay, + domains=[d.pk for d in sorted(domains, key=lambda d: d.name)], )