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:
parent
89ff64f52c
commit
81c477cd6b
7 changed files with 374 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue