Jon Perritt | 59c68fc | 2014-10-06 17:32:15 -0500 | [diff] [blame] | 1 | package gophercloud |
2 | |||||
3 | import ( | ||||
4 | "testing" | ||||
5 | |||||
6 | th "github.com/rackspace/gophercloud/testhelper" | ||||
7 | ) | ||||
8 | |||||
9 | func TestWaitFor(t *testing.T) { | ||||
Jamie Hannaford | 3586db1 | 2014-10-28 17:29:00 +0100 | [diff] [blame] | 10 | err := WaitFor(5, func() (bool, error) { |
Jon Perritt | 59c68fc | 2014-10-06 17:32:15 -0500 | [diff] [blame] | 11 | return true, nil |
12 | }) | ||||
13 | th.CheckNoErr(t, err) | ||||
14 | } |