Skip to content

Commit

Permalink
test(backend): fix streaming test error when replying to followers-on…
Browse files Browse the repository at this point in the history
…ly note
  • Loading branch information
zyoshoka committed Mar 24, 2024
1 parent 3db26f2 commit a71ccdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/backend/test/e2e/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,17 @@ describe('Streaming', () => {
assert.strictEqual(fired, true);
});

/* なんか失敗する
test('フォローしているユーザーの visibility: followers な投稿への返信が流れる', async () => {
const note = await api('notes/create', { text: 'foo', visibility: 'followers' }, kyoko);
const note = await post(kyoko, { text: 'foo', visibility: 'followers' });

const fired = await waitFire(
ayano, 'homeTimeline', // ayano:home
() => api('notes/create', { text: 'bar', visibility: 'followers', replyId: note.body.id }, kyoko), // kyoko posts
() => api('notes/create', { text: 'bar', visibility: 'followers', replyId: note.id }, kyoko), // kyoko posts
msg => msg.type === 'note' && msg.body.userId === kyoko.id && msg.body.reply.text === 'foo',
);

assert.strictEqual(fired, true);
});
*/

test('フォローしているユーザーのフォローしていないユーザーの visibility: followers な投稿への返信が流れない', async () => {
const chitoseNote = await post(chitose, { text: 'followers-only post', visibility: 'followers' });
Expand Down

0 comments on commit a71ccdc

Please sign in to comment.