소스 검색

stream groups

0x4a52466c696e74 1 개월 전
부모
커밋
fe9bbf0f7e
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      application/z_stream_group_test.go

+ 8 - 0
application/z_stream_group_test.go

@@ -140,3 +140,11 @@ func TestGroupStreamClose(t *testing.T) {
 	add()
 	time.Sleep(time.Second * 10)
 }
+
+func TestGroupBroadcast(t *testing.T) {
+	group := NewStreamGroup(context.Background())
+	group.Store("1", NewTestStream())
+	group.Store("12", NewTestStream())
+	group.EventBroadcast(NewTestRequestOut())
+	time.Sleep(time.Second * 10)
+}