Skip to content

Commit

Permalink
Update apis/v1beta1/collector_webhook_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Israel Blancas <[email protected]>
  • Loading branch information
taniyourstruly and iblancasa authored Aug 13, 2024
1 parent 59f50c1 commit a93594c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apis/v1beta1/collector_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a93594c

Please sign in to comment.