test: forgot one
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Sam Therapy 2022-09-28 19:07:46 +00:00
parent 6a839ba8e5
commit 56baff4e18

View file

@ -126,7 +126,18 @@ func TestCreateQ(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
t.Parallel()
res, err := query.CreateQuery(test.opts)
var (
res util.Response
err error
)
for i := 0; i <= test.opts.Request.Retries; i++ {
res, err = query.CreateQuery(test.opts)
if err == nil {
break
}
}
assert.NilError(t, err)
assert.Assert(t, res != util.Response{})