Skip to content

Commit

Permalink
Remove t.helper() for old go version
Browse files Browse the repository at this point in the history
  • Loading branch information
xxlv committed Jul 3, 2024
1 parent d0c8027 commit c5ca6e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions testutil/rules_test_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ func expectValidRule(t *testing.T, schema *graphql.Schema, rules []graphql.Valid

}
func expectInvalidRule(t *testing.T, schema *graphql.Schema, rules []graphql.ValidationRuleFn, queryString string, expectedErrors []gqlerrors.FormattedError) {
t.Helper()
source := source.NewSource(&source.Source{
Body: []byte(queryString),
})
Expand Down Expand Up @@ -596,7 +595,6 @@ func ExpectPassesRule(t *testing.T, rule graphql.ValidationRuleFn, queryString s
expectValidRule(t, TestSchema, []graphql.ValidationRuleFn{rule}, queryString)
}
func ExpectFailsRule(t *testing.T, rule graphql.ValidationRuleFn, queryString string, expectedErrors []gqlerrors.FormattedError) {
t.Helper()
expectInvalidRule(t, TestSchema, []graphql.ValidationRuleFn{rule}, queryString, expectedErrors)
}
func ExpectFailsRuleWithSchema(t *testing.T, schema *graphql.Schema, rule graphql.ValidationRuleFn, queryString string, expectedErrors []gqlerrors.FormattedError) {
Expand Down

0 comments on commit c5ca6e6

Please sign in to comment.