Signed-off-by: Yongxin Li <yxli@alauda.io>
This commit is contained in:
Yongxin Li 2018-09-20 10:56:42 +08:00
parent bd902372de
commit 03b1dae195

View File

@ -54,13 +54,13 @@ func TestWithEnv(t *testing.T) {
WithEnv([]string{"env2=2"})(nil, nil, nil, &s)
if s.Process.Env[2] != "env2=2" {
t.Fatal("could't update")
t.Fatal("couldn't update")
}
WithEnv([]string{"env2"})(nil, nil, nil, &s)
if len(s.Process.Env) != 2 {
t.Fatal("could't unset")
t.Fatal("couldn't unset")
}
}