lntest: add verbose logging when node fails to shutdown

This commit is contained in:
yyforyongyu 2023-11-25 07:18:47 +08:00
parent ae09ab2a21
commit 9cc57fa371
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -495,7 +495,8 @@ func (h *HarnessTest) Shutdown(node *node.HarnessNode) {
return h.manager.shutdownNode(node)
}, DefaultTimeout)
require.NoErrorf(h, err, "unable to shutdown %v", node.Name())
require.NoErrorf(h, err, "unable to shutdown %v in %v", node.Name(),
h.manager.currentTestCase)
}
// SuspendNode stops the given node and returns a callback that can be used to