diff --git a/pkg/rpc/server/server_test.go b/pkg/rpc/server/server_test.go index 9def78be5..058e724f1 100644 --- a/pkg/rpc/server/server_test.go +++ b/pkg/rpc/server/server_test.go @@ -1035,6 +1035,7 @@ func checkErrGetResult(t *testing.T, body []byte, expectingFail bool) json.RawMe err := json.Unmarshal(body, &resp) require.Nil(t, err) if expectingFail { + require.NotNil(t, resp.Error) assert.NotEqual(t, 0, resp.Error.Code) assert.NotEqual(t, "", resp.Error.Message) } else {