Skip to content

Commit

Permalink
Update expected error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Oct 7, 2024
1 parent ff947c1 commit 612bd82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/integration_tests/postgresql_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ query AddPerson {
}
}`
_, err := runGraphqlQuery(graphQLRequest{Query: query})

// Note, the expected error is related to query input validation, not function execution.
ps.Assert().NotNil(err)
ps.Assert().Contains(err.Error(), expectedError)
ps.Assert().EqualError(err, `Int cannot represent non-integer value: "abc"`)
}

func TestPostgresqlSuite(t *testing.T) {
Expand Down

0 comments on commit 612bd82

Please sign in to comment.