aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'internal/testsuite')
-rw-r--r--internal/testsuite/testsuite.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/testsuite/testsuite.go b/internal/testsuite/testsuite.go
index a1e3b34b..6278d066 100644
--- a/internal/testsuite/testsuite.go
+++ b/internal/testsuite/testsuite.go
@@ -283,6 +283,14 @@ func Poll(
extraEnv []string,
command ...string,
) {
+ n := time.NewTicker(1 * time.Second)
+ defer n.Stop()
+ go func() {
+ for range n.C {
+ log.Printf("still polling %s", strings.Join(command, " "))
+ }
+ }()
+
for range time.NewTicker(d).C {
cmd := exec.Command(command[0], command[1:]...)
cmd.SysProcAttr = &syscall.SysProcAttr{