mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
testing: pkg/signal; remove redundant fmt.Sprintf()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ad2765b35e
commit
c855d411bf
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
|||
package signal // import "github.com/docker/docker/pkg/signal"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
@ -43,7 +42,7 @@ func TestTrap(t *testing.T) {
|
|||
|
||||
for _, v := range sigmap {
|
||||
cmd := exec.Command(exePath)
|
||||
cmd.Env = append(os.Environ(), fmt.Sprintf("SIGNAL_TYPE=%s", v.name))
|
||||
cmd.Env = append(os.Environ(), "SIGNAL_TYPE="+v.name)
|
||||
if v.multiple {
|
||||
cmd.Env = append(cmd.Env, "IF_MULTIPLE=1")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue