Fix tests

This commit is contained in:
Manuel de Brito Fontes 2018-09-22 15:09:54 -03:00
parent 2882fb5ebe
commit 5cca38304e

View file

@ -24,6 +24,7 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
"k8s.io/apimachinery/pkg/util/sets"
)
func TestNewUDPLogListener(t *testing.T) {
@ -296,6 +297,8 @@ func TestCollector(t *testing.T) {
t.Errorf("registering collector failed: %s", err)
}
sc.SetHosts(sets.NewString("testshop.com"))
for _, d := range c.data {
sc.handleMessage([]byte(d))
}