mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
FIXME: implement a timeout in TestCmdStreamLArgStderr to avoid blocking the whole test suite when it fails
This commit is contained in:
parent
6ede6bc8f2
commit
f7b4f0c193
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ import (
|
||||||
|
|
||||||
func TestCmdStreamLargeStderr(t *testing.T) {
|
func TestCmdStreamLargeStderr(t *testing.T) {
|
||||||
// This test checks for deadlock; thus, the main failure mode of this test is deadlocking.
|
// This test checks for deadlock; thus, the main failure mode of this test is deadlocking.
|
||||||
|
// FIXME implement a timeout to avoid blocking the whole test suite when this test fails
|
||||||
cmd := exec.Command("/bin/sh", "-c", "dd if=/dev/zero bs=1k count=1000 of=/dev/stderr; echo hello")
|
cmd := exec.Command("/bin/sh", "-c", "dd if=/dev/zero bs=1k count=1000 of=/dev/stderr; echo hello")
|
||||||
out, err := CmdStream(cmd)
|
out, err := CmdStream(cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue