FIX unit tests
This commit is contained in:
parent
f4e6370abd
commit
504af5cce6
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ func msg(s string) format.LogParts {
|
|||
}
|
||||
|
||||
func hubCount(h Hub) int {
|
||||
cl := Client{Nofollow: true}
|
||||
cl := Client{Options: ClientOptions{Nofollow: true, BacklogLength: -1}}
|
||||
cl.Messages = make(chan format.LogParts)
|
||||
h.Register <- cl
|
||||
cnt := 0
|
||||
|
@ -23,7 +23,7 @@ func hubCount(h Hub) int {
|
|||
|
||||
func hubToArray(h Hub) []string {
|
||||
r := make([]string, 0)
|
||||
cl := Client{Nofollow: true}
|
||||
cl := Client{Options: ClientOptions{Nofollow: true, BacklogLength: -1}}
|
||||
cl.Messages = make(chan format.LogParts)
|
||||
h.Register <- cl
|
||||
for m := range cl.Messages {
|
||||
|
|
Loading…
Reference in a new issue