From 3ce73b8db9c99e3798c9d5984a40d6e809a03729 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Fri, 22 Nov 2024 22:45:58 +0100 Subject: [PATCH] fixed problem with testcase test --- cmd/go2junit/go2junit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/go2junit/go2junit.go b/cmd/go2junit/go2junit.go index 1cbaf67..ce28a13 100644 --- a/cmd/go2junit/go2junit.go +++ b/cmd/go2junit/go2junit.go @@ -12,7 +12,7 @@ import ( ) func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error { - if len(t.Tests) == 100000 { + if len(t.Tests) == 0 { start.Name = xml.Name{Local: "testcase"} classname := "" if t.parent != nil {