1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-30 09:50:55 +00:00

Add unique client counting

This commit is contained in:
Kane York 2015-12-23 21:57:33 -08:00
parent 89ff64f52c
commit 81c477cd6b
7 changed files with 374 additions and 1 deletions

View file

@ -228,6 +228,13 @@ func TestSubscriptionAndPublish(t *testing.T) {
doneWg.Wait()
server.Close()
for _, period := range periods {
clientCount := readHLL(period)
if clientCount < 3 || clientCount > 5 {
t.Error("clientCount outside acceptable range: expected 4, got ", clientCount)
}
}
}
func TestRestrictedCommands(t *testing.T) {