Skip to content

Commit fda6b07

Browse files
committed
Update tests to always give error
1 parent f7d3f48 commit fda6b07

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extra/redisotel/metrics_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func setupMetrics(conf *config) (*sdkmetric.ManualReader, *redis.Client) {
2929
otel.SetMeterProvider(mp)
3030

3131
rdb := redis.NewClient(&redis.Options{
32-
Addr: ":6379",
32+
Addr: ":6666",
3333
})
3434
if conf.meter == nil {
3535
conf.meter = conf.mp.Meter(
@@ -58,7 +58,7 @@ func TestMetrics(t *testing.T) {
5858
{
5959
Attributes: attribute.NewSet(
6060
semconv.DBSystemRedis,
61-
attribute.String("status", "ok"),
61+
attribute.String("status", "error"),
6262
),
6363
},
6464
},
@@ -75,7 +75,7 @@ func TestMetrics(t *testing.T) {
7575
Attributes: attribute.NewSet(
7676
semconv.DBSystemRedis,
7777
attribute.String("type", "command"),
78-
attribute.String("status", "ok"),
78+
attribute.String("status", "error"),
7979
),
8080
},
8181
},
@@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) {
114114
{
115115
Attributes: attribute.NewSet(
116116
semconv.DBSystemRedis,
117-
attribute.String("status", "ok"),
117+
attribute.String("status", "error"),
118118
),
119119
},
120120
},
@@ -131,7 +131,7 @@ func TestCustomAttributes(t *testing.T) {
131131
Attributes: attribute.NewSet(
132132
semconv.DBSystemRedis,
133133
attribute.String("type", "command"),
134-
attribute.String("status", "ok"),
134+
attribute.String("status", "error"),
135135
attribute.String("custom", "value"),
136136
),
137137
},

0 commit comments

Comments
 (0)