testagent: fix case where agent would retry forever
testagent: fix case where agent would retry forever

burdandrei/nomad,dvusboy/nomad,hashicorp/nomad,hashicorp/nomad,dvusboy/nomad,dvusboy/nomad,burdandrei/nomad,dvusboy/nomad,hashicorp/nomad,burdandrei/nomad,burdandrei/nomad,burdandrei/nomad,dvusboy/nomad,hashicorp/nomad,hashicorp/nomad,burdandrei/nomad,hashicorp/nomad,dvusboy/nomad,dvusboy/nomad,burdandrei/nomad