Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
razmser committed Mar 27, 2024
1 parent a9d2a9e commit ab707b7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions statshouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestCountRace(t *testing.T) {
c := statshouse.NewClient(t.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(t.Logf, "udp", "" /* avoid sending anything */, "")

var wg sync.WaitGroup
for i := 0; i < 1000; i++ {
Expand All @@ -30,7 +30,7 @@ func TestCountRace(t *testing.T) {
}

func BenchmarkValue2(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp", "" /* avoid sending anything */, "")
b.ResetTimer()

for i := 0; i < b.N; i++ {
Expand All @@ -39,7 +39,7 @@ func BenchmarkValue2(b *testing.B) {
}

func BenchmarkRawValue(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")

Check failure on line 42 in statshouse_test.go

View workflow job for this annotation

GitHub Actions / ci-go (1.19, ubuntu-latest)

File is not `goimports`-ed (goimports)

Check failure on line 42 in statshouse_test.go

View workflow job for this annotation

GitHub Actions / ci-go (1.19, macOS-latest)

File is not `goimports`-ed (goimports)
s := c.Metric("test_stat", statshouse.Tags{1: "hello", 2: "world"})
b.ResetTimer()

Expand All @@ -49,7 +49,7 @@ func BenchmarkRawValue(b *testing.B) {
}

func BenchmarkCount4(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
b.ResetTimer()

for i := 0; i < b.N; i++ {
Expand All @@ -58,7 +58,7 @@ func BenchmarkCount4(b *testing.B) {
}

func BenchmarkRawCount(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
s := c.Metric("test_stat", statshouse.Tags{1: "hello", 2: "brave", 3: "new", 4: "world"})
b.ResetTimer()

Expand All @@ -68,7 +68,7 @@ func BenchmarkRawCount(b *testing.B) {
}

func BenchmarkLabeledValue2(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
b.ResetTimer()

for i := 0; i < b.N; i++ {
Expand All @@ -77,7 +77,7 @@ func BenchmarkLabeledValue2(b *testing.B) {
}

func BenchmarkRawLabeledValue(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
s := c.MetricNamed("test_stat", statshouse.NamedTags{{"hello", "world"}, {"world", "hello"}})
b.ResetTimer()

Expand All @@ -87,7 +87,7 @@ func BenchmarkRawLabeledValue(b *testing.B) {
}

func BenchmarkLabeledCount4(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
b.ResetTimer()

for i := 0; i < b.N; i++ {
Expand All @@ -96,7 +96,7 @@ func BenchmarkLabeledCount4(b *testing.B) {
}

func BenchmarkRawLabeledCount(b *testing.B) {
c := statshouse.NewClient(b.Logf, "" /* avoid sending anything */, "")
c := statshouse.NewClient(b.Logf, "udp","" /* avoid sending anything */, "")
s := c.MetricNamed("test_stat", statshouse.NamedTags{{"hello", "world"}, {"world", "hello"}, {"hello1", "world"}, {"world1", "hello"}})
b.ResetTimer()

Expand Down

0 comments on commit ab707b7

Please sign in to comment.