From 13867a0cb53f0169887c4dc6373a6c4a61986955 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Wed, 14 Jun 2017 01:08:03 +0000 Subject: [PATCH] fix build issue caused by rebase --- go/pserver/service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/pserver/service_test.go b/go/pserver/service_test.go index 175c3c3ad..b746d13e1 100644 --- a/go/pserver/service_test.go +++ b/go/pserver/service_test.go @@ -79,7 +79,7 @@ func TestMultipleInit(t *testing.T) { } err = s.FinishInitParams(0, nil) - if err != pserver.ErrAlreadyInitialized { + if err.Error() != pserver.AlreadyInitialized { t.FailNow() } } @@ -87,7 +87,7 @@ func TestMultipleInit(t *testing.T) { func TestUninitialized(t *testing.T) { s := pserver.NewService() err := s.SendGrad(pserver.Gradient{}, nil) - if err != pserver.ErrUninitialized { + if err.Error() != pserver.Uninitialized { t.FailNow() } } -- GitLab