Skip to content

Commit

Permalink
lint: fix test lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
msvechla committed Jan 27, 2025
1 parent 36c1bed commit ad310b1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions controllers/notificationpolicy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ func stringP(s string) *string {
return &s
}

func int8P(i int) *int8 {
i8 := int8(i)
return &i8
}

func TestAssembleNotificationPolicyRoutes(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -295,7 +290,8 @@ func TestAssembleNotificationPolicyRoutes(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
ctx := context.Background()
s := runtime.NewScheme()
_ = grafanav1beta1.AddToScheme(s)
err := grafanav1beta1.AddToScheme(s)
assert.NoError(t, err, "adding scheme")
client := fake.NewClientBuilder().WithScheme(s).WithRuntimeObjects(routesToRuntimeObjects(tt.existingRoutes)...).Build()

gotPolicy, _, err := assembleNotificationPolicyRoutes(ctx, client, nil, tt.notificationPolicy)
Expand Down

0 comments on commit ad310b1

Please sign in to comment.