integration: don't use default values to test smth
Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
parent
1c9de5b4d2
commit
f78bf211f0
|
@ -188,8 +188,8 @@ func TestRlimit(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if limit := strings.TrimSpace(out.Stdout.String()); limit != "1024" {
|
if limit := strings.TrimSpace(out.Stdout.String()); limit != "1025" {
|
||||||
t.Fatalf("expected rlimit to be 1024, got %s", limit)
|
t.Fatalf("expected rlimit to be 1025, got %s", limit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,8 +118,8 @@ func TestExecInRlimit(t *testing.T) {
|
||||||
t.Log(err)
|
t.Log(err)
|
||||||
}
|
}
|
||||||
out := buffers.Stdout.String()
|
out := buffers.Stdout.String()
|
||||||
if limit := strings.TrimSpace(out); limit != "1024" {
|
if limit := strings.TrimSpace(out); limit != "1025" {
|
||||||
t.Fatalf("expected rlimit to be 1024, got %s", limit)
|
t.Fatalf("expected rlimit to be 1025, got %s", limit)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,8 @@ func newTemplateConfig(rootfs string) *configs.Config {
|
||||||
Rlimits: []configs.Rlimit{
|
Rlimits: []configs.Rlimit{
|
||||||
{
|
{
|
||||||
Type: syscall.RLIMIT_NOFILE,
|
Type: syscall.RLIMIT_NOFILE,
|
||||||
Hard: uint64(1024),
|
Hard: uint64(1025),
|
||||||
Soft: uint64(1024),
|
Soft: uint64(1025),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue