diff options
| author | Ryu jongheon <lapy@lapy.link> | 2024-06-18 12:18:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 12:18:04 +0900 |
| commit | d0ee0203e12d41515b05d7d99ae09f70eeae5874 (patch) | |
| tree | 74457d83725c3250ca1a1db36fcb5c024450b97f /packages/backend/test/e2e/clips.ts | |
| parent | fix(frontend): fix time on `MkChart`'s story (#13958) (diff) | |
| download | misskey-d0ee0203e12d41515b05d7d99ae09f70eeae5874.tar.gz misskey-d0ee0203e12d41515b05d7d99ae09f70eeae5874.tar.bz2 misskey-d0ee0203e12d41515b05d7d99ae09f70eeae5874.zip | |
Fix(backend): Limit antenna/webhook/list to exact amount (#14036)
... not +1
* Update antennas/clips e2e test
Diffstat (limited to '')
| -rw-r--r-- | packages/backend/test/e2e/clips.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/backend/test/e2e/clips.ts b/packages/backend/test/e2e/clips.ts index ba6f9d6a65..a229ec06f9 100644 --- a/packages/backend/test/e2e/clips.ts +++ b/packages/backend/test/e2e/clips.ts @@ -153,8 +153,7 @@ describe('クリップ', () => { }); test('の作成はポリシーで定められた数以上はできない。', async () => { - // ポリシー + 1まで作れるという所がミソ - const clipLimit = DEFAULT_POLICIES.clipLimit + 1; + const clipLimit = DEFAULT_POLICIES.clipLimit; for (let i = 0; i < clipLimit; i++) { await create(); } @@ -327,7 +326,7 @@ describe('クリップ', () => { }); test('の一覧(clips/list)が取得できる(上限いっぱい)', async () => { - const clipLimit = DEFAULT_POLICIES.clipLimit + 1; + const clipLimit = DEFAULT_POLICIES.clipLimit; const clips = await createMany({}, clipLimit); const res = await list({ parameters: { limit: 1 }, // FIXME: 無視されて11全部返ってくる @@ -705,7 +704,7 @@ describe('クリップ', () => { // TODO: 17000msくらいかかる... test('をポリシーで定められた上限いっぱい(200)を超えて追加はできない。', async () => { - const noteLimit = DEFAULT_POLICIES.noteEachClipsLimit + 1; + const noteLimit = DEFAULT_POLICIES.noteEachClipsLimit; const noteList = await Promise.all([...Array(noteLimit)].map((_, i) => post(alice, { text: `test ${i}`, }) as unknown)) as Misskey.entities.Note[]; |