From 5f638b4193372ca7f679b7e85119e8e0ed528f1c Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 2 Apr 2021 17:25:29 +0200 Subject: [PATCH] Print more details on test fail Signed-off-by: Jakub Sztandera --- cli/chain.go | 3 ++- cli/test/mockcli.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/chain.go b/cli/chain.go index 019b2e91f..6651a7764 100644 --- a/cli/chain.go +++ b/cli/chain.go @@ -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) diff --git a/cli/test/mockcli.go b/cli/test/mockcli.go index e8eb78f1b..aef7808c8 100644 --- a/cli/test/mockcli.go +++ b/cli/test/mockcli.go @@ -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 }