From d87cf2570d146c21571236513858cfa8d9302ed1 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 06:36:57 +0900 Subject: [PATCH] fix port --- .circleci/misskey/test.yml | 2 +- test/utils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/misskey/test.yml b/.circleci/misskey/test.yml index f02e90772d..ae18a841bd 100644 --- a/.circleci/misskey/test.yml +++ b/.circleci/misskey/test.yml @@ -1,5 +1,5 @@ url: 'http://misskey.local' -port: 80 +port: 8080 db: host: localhost port: 5432 diff --git a/test/utils.ts b/test/utils.ts index 0debf9a72d..0f66a5bd64 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -18,7 +18,7 @@ export const request = async (endpoint: string, params: any, me?: any): Promise< } : {}; try { - const res = await fetch('http://localhost:80/api' + endpoint, { + const res = await fetch('http://localhost:8080/api' + endpoint, { method: 'POST', body: JSON.stringify(Object.assign(auth, params)) }); @@ -66,7 +66,7 @@ export const react = async (user: any, note: any, reaction: string): Promise => new Promise((ok, rej) => { req.post({ - url: 'http://localhost:80/api/drive/files/create', + url: 'http://localhost:8080/api/drive/files/create', formData: { i: user.token, file: fs.createReadStream(path || __dirname + '/resources/Lenna.png')