mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
refactor: remove irrelevant property from pid unit test
This commit is contained in:
@@ -47,7 +47,7 @@ func TestEvalContainerSpecChange_ContainerCapDrop(t *testing.T) {
|
|||||||
assert.Equal(t, ContainerNeedsRecreate, EvalContainerSpecChange(newSpec, currentSpec))
|
assert.Equal(t, ContainerNeedsRecreate, EvalContainerSpecChange(newSpec, currentSpec))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEvalContainerSpecChange_ContainerPid(t *testing.T) {
|
func TestEvalContainerSpecChange_ContainerPidMode(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
currentSpec := api.ServiceSpec{
|
currentSpec := api.ServiceSpec{
|
||||||
@@ -59,7 +59,6 @@ func TestEvalContainerSpecChange_ContainerPid(t *testing.T) {
|
|||||||
Container: api.ContainerSpec{
|
Container: api.ContainerSpec{
|
||||||
Image: "nginx:latest",
|
Image: "nginx:latest",
|
||||||
PidMode: "host",
|
PidMode: "host",
|
||||||
CapAdd: []string{"NET_ADMIN"},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user