tests: Make sure `create_resource` raises error on failure
tests: Make sure `create_resource` raises error on failure

The index in rubys `each` iterator is zero indexed. Previously
`create_resource` would never raise an error if the last retry fails,
because `MAX_RETRIES > count` was always true. This patch makes sure
`create_resource` properly raises an error in case the last iteration
fails.

justaugustus/tectonic-installer,joshix/tectonic-installer,hhoover/tectonic-installer,cpanato/tectonic-installer,kyoto/tectonic-installer,hhoover/tectonic-installer,cpanato/tectonic-installer,zbwright/tectonic-installer,rithujohn191/tectonic-installer,hhoover/tectonic-installer,joshix/tectonic-installer,hhoover/tectonic-installer,joshix/tectonic-installer,lander2k2/tectonic-installer,alexsomesan/tectonic-installer,squat/tectonic-installer,cpanato/tectonic-installer,lander2k2/tectonic-installer,squat/tectonic-installer,kalmog/tectonic-installer,kyoto/tectonic-installer,alexsomesan/tectonic-installer,squat/tectonic-installer,lander2k2/tectonic-installer,mrwacky42/tectonic-installer,lander2k2/tectonic-installer,s-urbaniak/tectonic-installer,hhoover/tectonic-installer,squat/tectonic-installer,zbwright/tectonic-installer,metral/tectonic-installer,metral/tectonic-installer,kalmog/tectonic-installer,kyoto/tectonic-installer,justaugustus/tectonic-installer,justaugustus/tectonic-installer,rithujohn191/tectonic-installer,rithujohn191/tectonic-installer,rithujohn191/tectonic-installer,alexsomesan/tectonic-installer,mrwacky42/tectonic-installer,s-urbaniak/tectonic-installer,metral/tectonic-installer,rithujohn191/tectonic-installer,mrwacky42/tectonic-installer,kyoto/tectonic-installer,zbwright/tectonic-installer,kalmog/tectonic-installer,alexsomesan/tectonic-installer,derekhiggins/installer,mrwacky42/tectonic-installer,zbwright/tectonic-installer,s-urbaniak/tectonic-installer,metral/tectonic-installer,s-urbaniak/tectonic-installer,joshix/tectonic-installer,joshix/tectonic-installer,cpanato/tectonic-installer,alexsomesan/tectonic-installer,mrwacky42/tectonic-installer,kyoto/tectonic-installer,justaugustus/tectonic-installer,justaugustus/tectonic-installer,derekhiggins/installer,zbwright/tectonic-installer,metral/tectonic-installer,s-urbaniak/tectonic-installer