Skip to content

Commit

Permalink
Remove dot import from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminguttmann-avtq committed Oct 26, 2023
1 parent 11984f8 commit ccfdc5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions nozzle/gauge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/bosh-prometheus/firehose_exporter/metricmaker"
"github.com/bosh-prometheus/firehose_exporter/metrics"
. "github.com/bosh-prometheus/firehose_exporter/nozzle"
"github.com/bosh-prometheus/firehose_exporter/nozzle"
"github.com/bosh-prometheus/firehose_exporter/testing"
"github.com/bosh-prometheus/firehose_exporter/transform"
"github.com/gogo/protobuf/proto"
Expand All @@ -29,10 +29,10 @@ var _ = ginkgo.Describe("Nozzle", func() {

streamConnector := newSpyStreamConnector()

n := NewNozzle(streamConnector, "firehose_exporter", 0,
n := nozzle.NewNozzle(streamConnector, "firehose_exporter", 0,
pointBuffer,
internalMetric,
WithNozzleTimerRollup(
nozzle.WithNozzleTimerRollup(
100*time.Millisecond,
[]string{"tag1", "tag2", "status_code"},
[]string{"tag1", "tag2"},
Expand Down Expand Up @@ -90,10 +90,10 @@ var _ = ginkgo.Describe("Nozzle", func() {

streamConnector := newSpyStreamConnector()

n := NewNozzle(streamConnector, "firehose_exporter", 0,
n := nozzle.NewNozzle(streamConnector, "firehose_exporter", 0,
pointBuffer,
internalMetric,
WithNozzleTimerRollup(
nozzle.WithNozzleTimerRollup(
100*time.Millisecond,
[]string{"tag1", "tag2", "status_code"},
[]string{"tag1", "tag2"},
Expand Down
10 changes: 5 additions & 5 deletions nozzle/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"

. "github.com/bosh-prometheus/firehose_exporter/nozzle"
"github.com/bosh-prometheus/firehose_exporter/nozzle"
)

var _ = ginkgo.Describe("collect nozzle metrics", func() {
Expand All @@ -19,10 +19,10 @@ var _ = ginkgo.Describe("collect nozzle metrics", func() {
})
ginkgo.It("writes Ingress, Egress and Err metrics", func() {
streamConnector := newSpyStreamConnector()
n := NewNozzle(streamConnector, "firehose_exporter", 0,
n := nozzle.NewNozzle(streamConnector, "firehose_exporter", 0,
pointBuffer,
internalMetric,
WithNozzleTimerRollup(
nozzle.WithNozzleTimerRollup(
100*time.Millisecond,
[]string{"tag1", "tag2", "status_code"},
[]string{"tag1", "tag2"},
Expand All @@ -39,10 +39,10 @@ var _ = ginkgo.Describe("collect nozzle metrics", func() {
ginkgo.It("writes duration seconds histogram metrics", func() {
streamConnector := newSpyStreamConnector()

n := NewNozzle(streamConnector, "firehose_exporter", 0,
n := nozzle.NewNozzle(streamConnector, "firehose_exporter", 0,
pointBuffer,
internalMetric,
WithNozzleTimerRollup(
nozzle.WithNozzleTimerRollup(
100*time.Millisecond,
[]string{"tag1", "tag2", "status_code"},
[]string{"tag1", "tag2"},
Expand Down

0 comments on commit ccfdc5f

Please sign in to comment.