Fix flaky test by marking mock expectations as optional (#9596)
Fix flaky test by marking mock expectations as optional (#9596)

These expectations are optional because in a slow CI environment the deadline to cancell the context might occur before the go routine reaches issuing the RPC. Either way we are successfully ensuring context cancellation is working.
hashicorp/consul,hashicorp/consul,hashicorp/consul,hashicorp/consul