From 1f5442b2efc5ba60132b367094e6b627f11e69ba Mon Sep 17 00:00:00 2001 From: Tania Pham Date: Tue, 13 Aug 2024 09:52:34 -0700 Subject: [PATCH] fixed test --- apis/v1beta1/collector_webhook_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apis/v1beta1/collector_webhook_test.go b/apis/v1beta1/collector_webhook_test.go index 8c8ebd42df..9ffd67c69d 100644 --- a/apis/v1beta1/collector_webhook_test.go +++ b/apis/v1beta1/collector_webhook_test.go @@ -546,8 +546,11 @@ func TestOTELColValidatingWebhook(t *testing.T) { three := int32(3) five := int32(5) + err := v1beta1.AddToScheme(testScheme) + require.NoError(t, err) + cfg := v1beta1.Config{} - err := yaml.Unmarshal([]byte(cfgYaml), &cfg) + err = yaml.Unmarshal([]byte(cfgYaml), &cfg) require.NoError(t, err) tests := []struct { //nolint:govet