Print more details on test fail

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera
2021-05-07 15:30:05 +02:00
parent 8d75da1629
commit 5f638b4193
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1121,7 +1121,8 @@ var SlashConsensusFault = &cli.Command{
if err != nil {
return err
}
defer srv.Close()
defer srv.Close() //nolint:errcheck
a := srv.FullNodeAPI()
ctx := ReqContext(cctx)
+1 -1
View File
@@ -56,7 +56,7 @@ type MockCLIClient struct {
func (c *MockCLIClient) RunCmd(input ...string) string {
out, err := c.RunCmdRaw(input...)
require.NoError(c.t, err)
require.NoError(c.t, err, "output:\n%s", out)
return out
}