test: empty auth update channel in tests

This commit is contained in:
James Houlahan
2020-04-23 10:32:17 +02:00
committed by Michal Horejsek
parent 8f15041d8f
commit 7d30459417
5 changed files with 28 additions and 16 deletions

View File

@ -0,0 +1,12 @@
package pmapi
func newTestClientManager(cfg *ClientConfig) *ClientManager {
cm := NewClientManager(cfg)
go func() {
for range cm.authUpdates {
}
}()
return cm
}