From 6c038bc4255fc2ccd3f444425274509856b185b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Stemmer?= Date: Sat, 21 May 2022 23:29:24 +0100 Subject: [PATCH] parser/gotest: never reset nextID in report builder to ensure unique ids --- parser/gotest/report_builder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parser/gotest/report_builder.go b/parser/gotest/report_builder.go index 1a6fb7a..e6a35a1 100644 --- a/parser/gotest/report_builder.go +++ b/parser/gotest/report_builder.go @@ -249,8 +249,7 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio pkg.Benchmarks = benchmarks b.packages = append(b.packages, pkg) - // reset state - b.nextID = 1 + // reset state, except for nextID to ensure all id's are unique. b.lastID = 0 b.output = nil b.coverage = 0