Merge pull request #1537 from tklauser/staticcheck

Fix issues found by staticcheck
This commit is contained in:
Michael Crosby
2017-08-02 09:52:11 -04:00
committed by GitHub
4 changed files with 19 additions and 9 deletions
+6
View File
@@ -431,7 +431,13 @@ func TestExecinPassExtraFiles(t *testing.T) {
var stdout bytes.Buffer
pipeout1, pipein1, err := os.Pipe()
if err != nil {
t.Fatal(err)
}
pipeout2, pipein2, err := os.Pipe()
if err != nil {
t.Fatal(err)
}
inprocess := &libcontainer.Process{
Cwd: "/",
Args: []string{"sh", "-c", "cd /proc/$$/fd; echo -n *; echo -n 1 >3; echo -n 2 >4"},