MCPcopy
hub / github.com/gotify/server / waitForConnectedClients

Function waitForConnectedClients

api/stream/stream_test.go:612–620  ·  view source on GitHub ↗
(api *API, count int)

Source from the content-addressed store, hash-verified

610}
611
612func waitForConnectedClients(api *API, count int) {
613 for i := 0; i < 10; i++ {
614 if countClients(api) == count {
615 // ok
616 return
617 }
618 time.Sleep(10 * time.Millisecond)
619 }
620}

Callers 9

TestWriteMessageFailsFunction · 0.85
TestWritePingFailsFunction · 0.85
TestDeleteUserFunction · 0.85
TestMultipleClientsFunction · 0.85

Calls 1

countClientsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…