terraform/builtin/providers/librato/common_helpers_test.go

15 lines
226 B
Go
Raw Normal View History

2017-05-18 15:37:16 +02:00
package librato
import (
2017-05-25 20:09:04 +02:00
"log"
2017-05-18 15:37:16 +02:00
"testing"
"time"
)
func sleep(t *testing.T, amount time.Duration) func() {
return func() {
2017-05-25 20:09:04 +02:00
log.Printf("[INFO] Sleeping for %d seconds...", amount)
2017-05-18 15:37:16 +02:00
time.Sleep(amount * time.Second)
}
}