Fix tests
This commit is contained in:
parent
2882fb5ebe
commit
5cca38304e
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewUDPLogListener(t *testing.T) {
|
func TestNewUDPLogListener(t *testing.T) {
|
||||||
|
@ -296,6 +297,8 @@ func TestCollector(t *testing.T) {
|
||||||
t.Errorf("registering collector failed: %s", err)
|
t.Errorf("registering collector failed: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sc.SetHosts(sets.NewString("testshop.com"))
|
||||||
|
|
||||||
for _, d := range c.data {
|
for _, d := range c.data {
|
||||||
sc.handleMessage([]byte(d))
|
sc.handleMessage([]byte(d))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue