From 05febd07f0cf503575c84966517757aa355e6ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Mon, 1 Aug 2022 14:39:51 +0800 Subject: [PATCH] fix: the transaction name recorded is inaccurate, when transaction fails --- hrp/boomer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrp/boomer.go b/hrp/boomer.go index c05492c7..c139f90e 100644 --- a/hrp/boomer.go +++ b/hrp/boomer.go @@ -393,7 +393,7 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend // transaction // FIXME: support nested transactions if step.Struct().Transaction.Type == transactionEnd { // only record when transaction ends - b.RecordTransaction(stepResult.Name, transactionSuccess, stepResult.Elapsed, 0) + b.RecordTransaction(step.Struct().Transaction.Name, transactionSuccess, stepResult.Elapsed, 0) transactionSuccess = true // reset flag for next transaction } } else if stepResult.StepType == stepTypeRendezvous {