Skip to content

Commit

Permalink
Update tests to always give error
Browse files Browse the repository at this point in the history
  • Loading branch information
urdarinda committed Dec 17, 2024
1 parent f7d3f48 commit fda6b07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extra/redisotel/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func setupMetrics(conf *config) (*sdkmetric.ManualReader, *redis.Client) {
otel.SetMeterProvider(mp)

rdb := redis.NewClient(&redis.Options{
Addr: ":6379",
Addr: ":6666",
})
if conf.meter == nil {
conf.meter = conf.mp.Meter(
Expand Down Expand Up @@ -58,7 +58,7 @@ func TestMetrics(t *testing.T) {
{
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("status", "ok"),
attribute.String("status", "error"),
),
},
},
Expand All @@ -75,7 +75,7 @@ func TestMetrics(t *testing.T) {
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("type", "command"),
attribute.String("status", "ok"),
attribute.String("status", "error"),
),
},
},
Expand Down Expand Up @@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) {
{
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("status", "ok"),
attribute.String("status", "error"),
),
},
},
Expand All @@ -131,7 +131,7 @@ func TestCustomAttributes(t *testing.T) {
Attributes: attribute.NewSet(
semconv.DBSystemRedis,
attribute.String("type", "command"),
attribute.String("status", "ok"),
attribute.String("status", "error"),
attribute.String("custom", "value"),
),
},
Expand Down

0 comments on commit fda6b07

Please sign in to comment.