Merge pull request #2653 from liyongxin/master

typo fix oci/typo_spec_opts_test
This commit is contained in:
Phil Estes 2018-09-20 10:07:00 -04:00 committed by GitHub
commit 16b42fce94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,13 +54,13 @@ func TestWithEnv(t *testing.T) {
WithEnv([]string{"env2=2"})(nil, nil, nil, &s) WithEnv([]string{"env2=2"})(nil, nil, nil, &s)
if s.Process.Env[2] != "env2=2" { if s.Process.Env[2] != "env2=2" {
t.Fatal("could't update") t.Fatal("couldn't update")
} }
WithEnv([]string{"env2"})(nil, nil, nil, &s) WithEnv([]string{"env2"})(nil, nil, nil, &s)
if len(s.Process.Env) != 2 { if len(s.Process.Env) != 2 {
t.Fatal("coudn't unset") t.Fatal("couldn't unset")
} }
} }
@ -89,11 +89,11 @@ func TestWithMounts(t *testing.T) {
} }
if s.Mounts[1].Source != "new-source" { if s.Mounts[1].Source != "new-source" {
t.Fatal("invaid mount") t.Fatal("invalid mount")
} }
if s.Mounts[1].Destination != "new-dest" { if s.Mounts[1].Destination != "new-dest" {
t.Fatal("invaid mount") t.Fatal("invalid mount")
} }
} }