From 273fdd97edec3ad758dbf94e8268fd57512cee02 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 25 Mar 2015 20:43:23 -0700 Subject: [PATCH] Fixes pointer error Signed-off-by: Paul Mou --- pkg/ulimit/ulimit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ulimit/ulimit_test.go b/pkg/ulimit/ulimit_test.go index a07db6000b..1e8c881f51 100644 --- a/pkg/ulimit/ulimit_test.go +++ b/pkg/ulimit/ulimit_test.go @@ -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) } }