Commit a1a9ff5b authored by Levin Zimmermann's avatar Levin Zimmermann

client_test += print NEO server log if >=1 test(s) failed

parent 5b4ca2cd
...@@ -572,6 +572,17 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv ...@@ -572,6 +572,17 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
} }
t.Run(name, func(t *testing.T) { t.Run(name, func(t *testing.T) {
defer func() {
if t.Failed() {
logContent, err := nsrv.LogContent()
if err != nil {
t.Logf("logContent returned err: %s", err)
} else {
t.Logf("NEO log content:\n\n%s", logContent)
}
}
}()
X := xtesting.FatalIf(t) X := xtesting.FatalIf(t)
if noautodetect && len(encv) > 1 && encv[0] == srvEnc { if noautodetect && len(encv) > 1 && encv[0] == srvEnc {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment