Merge pull request #2653 from liyongxin/master
typo fix oci/typo_spec_opts_test
This commit is contained in:
commit
16b42fce94
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user