提交 13867a0c 编写于 作者: H Helin Wang

fix build issue caused by rebase

上级 102e10af
......@@ -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()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册