1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Merge pull request #11794 from moo-mou/11790-pkgulimit

Fixes pointer error
Upstream-commit: bc0f1e0e098d49fff458679001fe4e2ae58c03d7
Component: engine
This commit is contained in:
Alexander Morozov
2015-03-25 21:30:37 -07:00

View File

@@ -4,8 +4,8 @@ import "testing"
func TestParseValid(t *testing.T) {
u1 := &Ulimit{"nofile", 1024, 512}
if u2, _ := Parse("nofile=512:1024"); u1 == u2 {
t.Fatalf("expected %s, but got %s", u1.String(), u2.String())
if u2, _ := Parse("nofile=512:1024"); *u1 != *u2 {
t.Fatalf("expected %q, but got %q", u1, u2)
}
}