From fda6b073d7b3faab50ac237f911bda211d053aaa Mon Sep 17 00:00:00 2001 From: Jatin Rungta <9137405+urdarinda@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:23:27 +0530 Subject: [PATCH] Update tests to always give error --- extra/redisotel/metrics_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extra/redisotel/metrics_test.go b/extra/redisotel/metrics_test.go index 0c8535ace..97931881e 100644 --- a/extra/redisotel/metrics_test.go +++ b/extra/redisotel/metrics_test.go @@ -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( @@ -58,7 +58,7 @@ func TestMetrics(t *testing.T) { { Attributes: attribute.NewSet( semconv.DBSystemRedis, - attribute.String("status", "ok"), + attribute.String("status", "error"), ), }, }, @@ -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"), ), }, }, @@ -114,7 +114,7 @@ func TestCustomAttributes(t *testing.T) { { Attributes: attribute.NewSet( semconv.DBSystemRedis, - attribute.String("status", "ok"), + attribute.String("status", "error"), ), }, }, @@ -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"), ), },