From 504af5cce6113c84382a1f54ea2ac99fb656510a Mon Sep 17 00:00:00 2001 From: boyska Date: Thu, 8 Nov 2018 19:42:33 +0100 Subject: [PATCH] FIX unit tests --- hub_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub_test.go b/hub_test.go index b685dbb..cc90a84 100644 --- a/hub_test.go +++ b/hub_test.go @@ -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 {