From a93594c17bcd6cb95bb5af7341981cb056447307 Mon Sep 17 00:00:00 2001 From: Tania Pham Date: Tue, 13 Aug 2024 09:24:59 -0700 Subject: [PATCH] Update apis/v1beta1/collector_webhook_test.go Co-authored-by: Israel Blancas --- apis/v1beta1/collector_webhook_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apis/v1beta1/collector_webhook_test.go b/apis/v1beta1/collector_webhook_test.go index 739ceb0d97..a1f968363c 100644 --- a/apis/v1beta1/collector_webhook_test.go +++ b/apis/v1beta1/collector_webhook_test.go @@ -546,10 +546,8 @@ func TestOTELColValidatingWebhook(t *testing.T) { three := int32(3) five := int32(5) - if err := v1beta1.AddToScheme(testScheme); err != nil { - fmt.Printf("failed to register scheme: %v", err) - os.Exit(1) - } + v1beta1.AddToScheme(testScheme) + require.NoError(e, err) cfg := v1beta1.Config{} err := yaml.Unmarshal([]byte(cfgYaml), &cfg)