Skip to content

Commit

Permalink
fixup! WIP: fix for updated API
Browse files Browse the repository at this point in the history
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
  • Loading branch information
palnabarun committed May 2, 2022
1 parent 7e8bc54 commit 0944adc
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package variables

import (
"context"
"testing"

. "github.com/onsi/gomega"
Expand Down Expand Up @@ -105,7 +106,8 @@ func Test_ValidateClusterClassVariables(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
g := NewWithT(t)

errList := ValidateClusterClassVariables(tt.clusterClassVariables,
errList := ValidateClusterClassVariables(context.TODO(),
tt.clusterClassVariables,
field.NewPath("spec", "variables"))

if tt.wantErr {
Expand Down Expand Up @@ -907,7 +909,8 @@ func Test_ValidateClusterClassVariable(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
g := NewWithT(t)

errList := validateClusterClassVariable(tt.clusterClassVariable,
errList := validateClusterClassVariable(context.TODO(),
tt.clusterClassVariable,
field.NewPath("spec", "variables").Index(0))

if tt.wantErr {
Expand Down

0 comments on commit 0944adc

Please sign in to comment.