Skip to content

Commit

Permalink
fix unsafe actions flaky test (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
imperfect-fourth committed Sep 15, 2024
1 parent d0908e9 commit 0a34789
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions unsafe/actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,21 @@ func TestActionQuery(t *testing.T) {
},
).Select("name")

expected := `query run_test_action {
test_action(arg1: 4, arg2: "value", arg3: enumvalue) {
// expected := `query run_test_action {
// test_action(arg1: 4, arg2: "value", arg3: enumvalue) {
// name
// }
// }`
query := q.Query()
assert.Contains(t, query,
`query run_test_action {
test_action(`,
`arg1: 4`,
`arg2: "value"`,
`arg3: enumvalue`,
`) {
name
}
}`
assert.Equal(t, expected, q.Query())
}`,
)
}

0 comments on commit 0a34789

Please sign in to comment.