mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-18 01:27:25 +00:00
Query handler should return errors for easier debugging.
This commit is contained in:
+4
-1
@@ -66,7 +66,10 @@ func Test_queryAgainstDatabaseExecution(t *testing.T) {
|
||||
is_admin
|
||||
}
|
||||
}`
|
||||
result := Query(query, variables, headers)
|
||||
result, err := Query(query, variables, headers)
|
||||
if err != nil {
|
||||
t.Log("Query execution errored. Is GQL server up?")
|
||||
}
|
||||
expected := `{"tbl_user_group_admins":[{"id":109,"is_admin":1}]}`
|
||||
assert.Equal(expected, string(result), "Query result execution should be equal")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user