Skip to content

Commit ab5ab3c

Browse files
dploegerDennis Ploeger
authored andcommitted
fix: Put a sleep in the RunCommand implementation
as it might break the container runtime with flooding it with status requests
1 parent 13754a1 commit ab5ab3c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/tests/lib/container/docker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/thoas/go-funk"
1515
"io"
1616
"strings"
17+
"time"
1718
)
1819

1920
// generate a platform spec from a platform string.
@@ -199,6 +200,7 @@ func (d DockerAdapter) RunCommand(containerID string, cmd []string) (string, err
199200
}
200201
return fmt.Sprintf("Command output: %s\n\nContainer output: %s\n%s", commandLogbuf.String(), containerLogBuf.String(), err), nil
201202
}
203+
time.Sleep(2 * time.Second)
202204
}
203205
}
204206
}

0 commit comments

Comments
 (0)