diff --git a/exporter/exporter_test.go b/exporter/exporter_test.go index 4260567c..a00ca19d 100644 --- a/exporter/exporter_test.go +++ b/exporter/exporter_test.go @@ -27,10 +27,11 @@ import ( "sync" "testing" - "github.com/percona/mongodb_exporter/internal/tu" "github.com/prometheus/client_golang/prometheus/testutil" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" + + "github.com/percona/mongodb_exporter/internal/tu" ) // Use this for testing because labels like cluster ID are not constant in docker containers diff --git a/exporter/replset_status_collector.go b/exporter/replset_status_collector.go index 9e4d75e1..afbbd6d3 100644 --- a/exporter/replset_status_collector.go +++ b/exporter/replset_status_collector.go @@ -17,6 +17,7 @@ package exporter import ( "context" + "github.com/prometheus/client_golang/prometheus" "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/bson" diff --git a/exporter/replset_status_collector_test.go b/exporter/replset_status_collector_test.go index ce7682f8..12a5cbcb 100644 --- a/exporter/replset_status_collector_test.go +++ b/exporter/replset_status_collector_test.go @@ -21,10 +21,11 @@ import ( "testing" "time" - "github.com/percona/mongodb_exporter/internal/tu" "github.com/prometheus/client_golang/prometheus/testutil" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" + + "github.com/percona/mongodb_exporter/internal/tu" ) func TestReplsetStatusCollector(t *testing.T) {