Skip to content

Commit

Permalink
better test error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzielenski committed May 29, 2024
1 parent 7c95d55 commit f1e2ffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmd/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func TestValidationErrorsIndividually(t *testing.T) {
// TODO: using 1.23 since as of writing we only have patches for that schema
// version should change to more recent version/test a matrix a versions in
// the future.
//!TODO: Change download-builtin-schemas to apply these patches to all
// versions
patchesDir := "../openapiclient/patches/1.23"

cases, err := os.ReadDir(manifestDir)
Expand Down Expand Up @@ -72,7 +74,7 @@ func TestValidationErrorsIndividually(t *testing.T) {

expectation := metav1.Status{}
if err := json.Unmarshal([]byte(comment.String()), &expectation); err != nil {
t.Fatal(err)
t.Fatalf("error parsing leading expectation comment: %v", err)
}

expected = append(expected, expectation)
Expand Down

0 comments on commit f1e2ffa

Please sign in to comment.