Fix #4768
This commit is contained in:
		
							parent
							
								
									c203c8302b
								
							
						
					
					
						commit
						f31f986d66
					
				
					 2 changed files with 27 additions and 0 deletions
				
			
		|  | @ -594,6 +594,31 @@ describe('Streaming', () => { | |||
| 				text: 'foo' | ||||
| 			}); | ||||
| 		})); | ||||
| 
 | ||||
| 		it('ホーム投稿は流れない', () => new Promise(async done => { | ||||
| 			const alice = await signup({ username: 'alice' }); | ||||
| 			const bob = await signup({ username: 'bob' }); | ||||
| 
 | ||||
| 			let fired = false; | ||||
| 
 | ||||
| 			const ws = await connectStream(alice, 'globalTimeline', ({ type, body }) => { | ||||
| 				if (type == 'note') { | ||||
| 					fired = true; | ||||
| 				} | ||||
| 			}); | ||||
| 
 | ||||
| 			// ホーム投稿
 | ||||
| 			post(bob, { | ||||
| 				text: 'foo', | ||||
| 				visibility: 'home' | ||||
| 			}); | ||||
| 
 | ||||
| 			setTimeout(() => { | ||||
| 				assert.strictEqual(fired, false); | ||||
| 				ws.close(); | ||||
| 				done(); | ||||
| 			}, 3000); | ||||
| 		})); | ||||
| 	}); | ||||
| 
 | ||||
| 	describe('UserList Timeline', () => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue