@@ -15,12 +15,13 @@ import (
15
15
"github.com/influxdata/influxdb/monitor"
16
16
"github.com/influxdata/influxdb/services/meta"
17
17
"github.com/influxdata/influxdb/toml"
18
+ "github.com/influxdata/influxdb/tsdb"
18
19
"go.uber.org/zap"
19
20
"go.uber.org/zap/zaptest/observer"
20
21
)
21
22
22
23
func TestMonitor_Open (t * testing.T ) {
23
- s := monitor .New (nil , monitor.Config {})
24
+ s := monitor .New (nil , monitor.Config {}, & tsdb. Config {} )
24
25
if err := s .Open (); err != nil {
25
26
t .Fatalf ("unexpected open error: %s" , err )
26
27
}
@@ -48,7 +49,7 @@ func TestMonitor_SetPointsWriter_StoreEnabled(t *testing.T) {
48
49
}
49
50
50
51
config := monitor .NewConfig ()
51
- s := monitor .New (nil , config )
52
+ s := monitor .New (nil , config , & tsdb. Config {} )
52
53
s .MetaClient = & mc
53
54
core , logs := observer .New (zap .DebugLevel )
54
55
s .WithLogger (zap .New (core ))
@@ -67,7 +68,7 @@ func TestMonitor_SetPointsWriter_StoreEnabled(t *testing.T) {
67
68
}
68
69
69
70
func TestMonitor_SetPointsWriter_StoreDisabled (t * testing.T ) {
70
- s := monitor .New (nil , monitor.Config {})
71
+ s := monitor .New (nil , monitor.Config {}, & tsdb. Config {} )
71
72
core , logs := observer .New (zap .DebugLevel )
72
73
s .WithLogger (zap .New (core ))
73
74
@@ -134,7 +135,7 @@ func TestMonitor_StoreStatistics(t *testing.T) {
134
135
135
136
config := monitor .NewConfig ()
136
137
config .StoreInterval = toml .Duration (10 * time .Millisecond )
137
- s := monitor .New (nil , config )
138
+ s := monitor .New (nil , config , & tsdb. Config {} )
138
139
s .MetaClient = & mc
139
140
s .PointsWriter = & pw
140
141
@@ -210,7 +211,7 @@ func TestMonitor_Reporter(t *testing.T) {
210
211
211
212
config := monitor .NewConfig ()
212
213
config .StoreInterval = toml .Duration (10 * time .Millisecond )
213
- s := monitor .New (reporter , config )
214
+ s := monitor .New (reporter , config , & tsdb. Config {} )
214
215
s .MetaClient = & mc
215
216
s .PointsWriter = & pw
216
217
@@ -306,7 +307,7 @@ func TestMonitor_Expvar(t *testing.T) {
306
307
307
308
config := monitor .NewConfig ()
308
309
config .StoreInterval = toml .Duration (10 * time .Millisecond )
309
- s := monitor .New (nil , config )
310
+ s := monitor .New (nil , config , & tsdb. Config {} )
310
311
s .MetaClient = & mc
311
312
s .PointsWriter = & pw
312
313
@@ -400,7 +401,7 @@ func TestMonitor_QuickClose(t *testing.T) {
400
401
var pw PointsWriter
401
402
config := monitor .NewConfig ()
402
403
config .StoreInterval = toml .Duration (24 * time .Hour )
403
- s := monitor .New (nil , config )
404
+ s := monitor .New (nil , config , & tsdb. Config {} )
404
405
s .MetaClient = & mc
405
406
s .PointsWriter = & pw
406
407
0 commit comments