diff --git a/exporter/prometheusremotewriteexporter/exporter_test.go b/exporter/prometheusremotewriteexporter/exporter_test.go index bb00e4268bc5..21568a64d8dd 100644 --- a/exporter/prometheusremotewriteexporter/exporter_test.go +++ b/exporter/prometheusremotewriteexporter/exporter_test.go @@ -119,6 +119,7 @@ func Test_NewPRWExporter(t *testing.T) { cfg.ExternalLabels = tt.externalLabels cfg.Namespace = tt.namespace cfg.RemoteWriteQueue.NumConsumers = 1 + cfg.RemoteWriteProtoMsg = config.RemoteWriteProtoMsgV1 prwe, err := newPRWExporter(cfg, tt.set) if tt.returnErrorOnCreate { @@ -211,6 +212,7 @@ func Test_Start(t *testing.T) { cfg.Namespace = tt.namespace cfg.RemoteWriteQueue.NumConsumers = 1 cfg.ClientConfig = tt.clientSettings + cfg.RemoteWriteProtoMsg = config.RemoteWriteProtoMsgV1 prwe, err := newPRWExporter(cfg, tt.set) assert.NoError(t, err)