Skip to content

Commit 2f481ca

Browse files
committed
create statsd client in tests
1 parent e63cca0 commit 2f481ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

iprepd_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ func TestMain(m *testing.M) {
5555
if renv != "" {
5656
tcfg.Redis.Addr = renv
5757
}
58+
sruntime.statsd, err = newStatsdClient(tcfg)
59+
if err != nil {
60+
fmt.Fprintf(os.Stderr, "%v\n", err)
61+
os.Exit(1)
62+
}
5863
sruntime.redis, err = newRedisLink(tcfg)
5964
if err != nil {
6065
fmt.Fprintf(os.Stderr, "%v\n", err)

0 commit comments

Comments
 (0)