1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixes pointer error

Signed-off-by: Paul Mou <ppymou@gmail.com>
This commit is contained in:
paul 2015-03-25 20:43:23 -07:00
parent f84086be2a
commit 273fdd97ed

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)
}
}