@@ -15,12 +15,13 @@ import (
1515 "github.com/influxdata/influxdb/monitor"
1616 "github.com/influxdata/influxdb/services/meta"
1717 "github.com/influxdata/influxdb/toml"
18+ "github.com/influxdata/influxdb/tsdb"
1819 "go.uber.org/zap"
1920 "go.uber.org/zap/zaptest/observer"
2021)
2122
2223func TestMonitor_Open (t * testing.T ) {
23- s := monitor .New (nil , monitor.Config {})
24+ s := monitor .New (nil , monitor.Config {}, & tsdb. Config {} )
2425 if err := s .Open (); err != nil {
2526 t .Fatalf ("unexpected open error: %s" , err )
2627 }
@@ -48,7 +49,7 @@ func TestMonitor_SetPointsWriter_StoreEnabled(t *testing.T) {
4849 }
4950
5051 config := monitor .NewConfig ()
51- s := monitor .New (nil , config )
52+ s := monitor .New (nil , config , & tsdb. Config {} )
5253 s .MetaClient = & mc
5354 core , logs := observer .New (zap .DebugLevel )
5455 s .WithLogger (zap .New (core ))
@@ -67,7 +68,7 @@ func TestMonitor_SetPointsWriter_StoreEnabled(t *testing.T) {
6768}
6869
6970func TestMonitor_SetPointsWriter_StoreDisabled (t * testing.T ) {
70- s := monitor .New (nil , monitor.Config {})
71+ s := monitor .New (nil , monitor.Config {}, & tsdb. Config {} )
7172 core , logs := observer .New (zap .DebugLevel )
7273 s .WithLogger (zap .New (core ))
7374
@@ -134,7 +135,7 @@ func TestMonitor_StoreStatistics(t *testing.T) {
134135
135136 config := monitor .NewConfig ()
136137 config .StoreInterval = toml .Duration (10 * time .Millisecond )
137- s := monitor .New (nil , config )
138+ s := monitor .New (nil , config , & tsdb. Config {} )
138139 s .MetaClient = & mc
139140 s .PointsWriter = & pw
140141
@@ -210,7 +211,7 @@ func TestMonitor_Reporter(t *testing.T) {
210211
211212 config := monitor .NewConfig ()
212213 config .StoreInterval = toml .Duration (10 * time .Millisecond )
213- s := monitor .New (reporter , config )
214+ s := monitor .New (reporter , config , & tsdb. Config {} )
214215 s .MetaClient = & mc
215216 s .PointsWriter = & pw
216217
@@ -306,7 +307,7 @@ func TestMonitor_Expvar(t *testing.T) {
306307
307308 config := monitor .NewConfig ()
308309 config .StoreInterval = toml .Duration (10 * time .Millisecond )
309- s := monitor .New (nil , config )
310+ s := monitor .New (nil , config , & tsdb. Config {} )
310311 s .MetaClient = & mc
311312 s .PointsWriter = & pw
312313
@@ -400,7 +401,7 @@ func TestMonitor_QuickClose(t *testing.T) {
400401 var pw PointsWriter
401402 config := monitor .NewConfig ()
402403 config .StoreInterval = toml .Duration (24 * time .Hour )
403- s := monitor .New (nil , config )
404+ s := monitor .New (nil , config , & tsdb. Config {} )
404405 s .MetaClient = & mc
405406 s .PointsWriter = & pw
406407
0 commit comments