Skip to content

Commit

Permalink
Fix unit tests after validation bug fix (graph-gophers#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelnikolov authored and KNiepok committed Feb 28, 2023
1 parent e96f67f commit 1a5db2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/starwars/starwars.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ type MutationResolver struct{}

func (r *MutationResolver) CreateReview(args *struct {
Episode string
Review *reviewInput
Review reviewInput
}) *reviewResolver {
review := &review{
stars: args.Review.Stars,
Expand Down
4 changes: 2 additions & 2 deletions graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ type recursive struct {
}

func (r *inputResolver) Recursive(args struct{ Value *recursive }) int32 {
n := int32(0)
var n int32
v := args.Value
for v != nil {
v = v.Next
Expand Down Expand Up @@ -3770,7 +3770,7 @@ func TestInput(t *testing.T) {
nullableIntEnumValue(value: IntEnum): IntEnum
intEnum(value: IntEnum!): IntEnum!
nullableIntEnum(value: IntEnum): IntEnum
recursive(value: RecursiveInput!): Int!
recursive(value: RecursiveInput): Int!
id(value: ID!): ID!
}
Expand Down

0 comments on commit 1a5db2e

Please sign in to comment.