tests: fixed unstable test TestAPI_AgentMonitor (#7561)
tests: fixed unstable test TestAPI_AgentMonitor (#7561)

Similar fix as https://github.com/hashicorp/consul/pull/7541
hashicorp/consul,hashicorp/consul,hashicorp/consul,hashicorp/consul