Skip to content

Commit

Permalink
junit: collector fix
Browse files Browse the repository at this point in the history
JUnit collector skip logic fixed.

Signed-off-by: viktor-kurchenko <[email protected]>
  • Loading branch information
viktor-kurchenko authored and michi-covalent committed Jul 25, 2024
1 parent 926f5eb commit 14b8b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectivity/check/junit.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type JUnitCollector struct {
// Collect collects ConnectivityTest instance test results.
// The method is not thread safe.
func (j *JUnitCollector) Collect(ct *ConnectivityTest) {
if j.junitFile != "" && len(ct.tests) == 0 {
if j.junitFile == "" || len(ct.tests) == 0 {
return
}

Expand Down

0 comments on commit 14b8b5b

Please sign in to comment.