aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/follows.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/follows.ts')
-rw-r--r--server/tests/utils/follows.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/follows.ts b/server/tests/utils/follows.ts
index 033c6a719..a9f798bcb 100644
--- a/server/tests/utils/follows.ts
+++ b/server/tests/utils/follows.ts
@@ -42,8 +42,8 @@ async function follow (follower: string, following: string[], accessToken: strin
42 return res 42 return res
43} 43}
44 44
45async function unfollow (url: string, accessToken: string, id: number, expectedStatus = 204) { 45async function unfollow (url: string, accessToken: string, target: ServerInfo, expectedStatus = 204) {
46 const path = '/api/v1/server/following/' + id 46 const path = '/api/v1/server/following/' + target.host
47 47
48 const res = await request(url) 48 const res = await request(url)
49 .delete(path) 49 .delete(path)