From fa3e9fab424adb4b1f9c592ced5b8ec233be449e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 8 Jul 2014 17:50:59 -0700 Subject: [PATCH] helper/resource: wait 2 seconds between each --- helper/resource/wait.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helper/resource/wait.go b/helper/resource/wait.go index 8518323ca..7c924c7f3 100644 --- a/helper/resource/wait.go +++ b/helper/resource/wait.go @@ -36,7 +36,7 @@ type waitResult struct { // specified in the configuration using the specified Refresh() func, // waiting the number of seconds specified in the timeout configuration. func (conf *StateChangeConf) WaitForState() (i interface{}, err error) { - log.Printf("Waiting for state to become: %s", conf.Target) + log.Printf("[DEBUG] Waiting for state to become: %s", conf.Target) notfoundTick := 0 @@ -87,10 +87,10 @@ func (conf *StateChangeConf) WaitForState() (i interface{}, err error) { return } } - } - // Wait between refreshes - time.Sleep(2 * time.Second) + // Wait between refreshes + time.Sleep(2 * time.Second) + } }() select {