diff --git a/api/tests/manage/test_views.py b/api/tests/manage/test_views.py
index 72394052c9cc23132fa94f389e9c751c8d79ff70..9a3c119ea01c93be6adc49df1b4a78b003254e85 100644
--- a/api/tests/manage/test_views.py
+++ b/api/tests/manage/test_views.py
@@ -63,7 +63,7 @@ def test_domain_detail(factories, superuser_api_client):
 
 def test_domain_create(superuser_api_client, mocker):
     update_domain_nodeinfo = mocker.patch(
-        "funkwhale_api.federation.tasks.update_domain_nodeinfo"
+        "funkwhale_api.federation.tasks.update_domain_nodeinfo.delay"
     )
     url = reverse("api:v1:manage:federation:domains-list")
     response = superuser_api_client.post(url, {"name": "test.federation"})