Skip to content

Commit

Permalink
Correct missing field(s) error
Browse files Browse the repository at this point in the history
  • Loading branch information
GregDritschler authored and tekton-robot committed Mar 27, 2020
1 parent 1a781b7 commit 0b3a8b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1alpha1/task_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func TestTaskSpecValidateError(t *testing.T) {
fields fields
expectedError apis.FieldError
}{{
name: "nil",
name: "empty spec",
expectedError: apis.FieldError{
Message: `missing field(s)`,
Paths: []string{"steps"},
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/task_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func TestTaskSpecValidateError(t *testing.T) {
fields fields
expectedError apis.FieldError
}{{
name: "nil",
name: "empty spec",
expectedError: apis.FieldError{
Message: `missing field(s)`,
Paths: []string{"steps"},
Expand Down

0 comments on commit 0b3a8b1

Please sign in to comment.