commit | b7a764d8a4ec21716b37e057edc7e6c157357b32 | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Mon Oct 27 14:40:55 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Mon Oct 27 14:40:55 2014 +0100 |
tree | 2a38e62ccbaea052c2d4dade76b8caaa3aa95d02 | |
parent | b65675ff8aebf591bfe386b5802683cb72721061 [diff] [blame] |
Hopefully making waitFor less flaky
diff --git a/util_test.go b/util_test.go index 6fbd920..52ab801 100644 --- a/util_test.go +++ b/util_test.go
@@ -2,12 +2,14 @@ import ( "testing" + "time" th "github.com/rackspace/gophercloud/testhelper" ) func TestWaitFor(t *testing.T) { err := WaitFor(0, func() (bool, error) { + time.Sleep(1 * time.Second) return true, nil }) if err == nil {