From c3c18016c66f47e0e5249a6ba1f144f5780d8e55 Mon Sep 17 00:00:00 2001 From: Rodrigo Arguello Date: Thu, 16 Jan 2025 15:16:51 +0100 Subject: [PATCH] contrib/IBM/sarama.v1: skip integration test if env variable is not set --- contrib/IBM/sarama.v1/consumer_group_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/IBM/sarama.v1/consumer_group_test.go b/contrib/IBM/sarama.v1/consumer_group_test.go index cb225aae02..17609f2629 100644 --- a/contrib/IBM/sarama.v1/consumer_group_test.go +++ b/contrib/IBM/sarama.v1/consumer_group_test.go @@ -8,6 +8,7 @@ package sarama import ( "context" "log" + "os" "sync" "testing" @@ -20,6 +21,10 @@ import ( ) func TestWrapConsumerGroupHandler(t *testing.T) { + if _, ok := os.LookupEnv("INTEGRATION"); !ok { + t.Skip("🚧 Skipping integration test (INTEGRATION environment variable is not set)") + } + mt := mocktracer.Start() defer mt.Stop()