Merge pull request #11794 from moo-mou/11790-pkgulimit
Fixes pointer error
This commit is contained in:
commit
e1187162b4
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ import "testing"
|
||||||
|
|
||||||
func TestParseValid(t *testing.T) {
|
func TestParseValid(t *testing.T) {
|
||||||
u1 := &Ulimit{"nofile", 1024, 512}
|
u1 := &Ulimit{"nofile", 1024, 512}
|
||||||
if u2, _ := Parse("nofile=512:1024"); u1 == u2 {
|
if u2, _ := Parse("nofile=512:1024"); *u1 != *u2 {
|
||||||
t.Fatalf("expected %s, but got %s", u1.String(), u2.String())
|
t.Fatalf("expected %q, but got %q", u1, u2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue