fix race condition in test
fix race condition in test

I'm not sure why that code was run in a go-routine when side effects of
it is being evaluated in a test just below and it doesn't block. Going
to assume it was a mistake.

hashicorp/consul-template,hashicorp/consul-template