From da32cff313406d4c88c0e7bb2cb56f01d30c95e1 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 13 May 2020 13:16:10 +0300 Subject: [PATCH] rpc/server: don't panic on test failure --- pkg/rpc/server/server_test.go | 1 + 1 file changed, 1 insertion(+) 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 {