Skip to content

Commit c8fe544

Browse files
committed
fix: test exporter_test.go
1 parent c261f9e commit c8fe544

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/manifests/collector/parser/exporter/exporter_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
package exporter
1616

1717
import (
18-
"reflect"
1918
"testing"
2019

20+
"github.com/stretchr/testify/assert"
21+
2122
v1 "k8s.io/api/core/v1"
2223
"k8s.io/apimachinery/pkg/util/intstr"
2324
)
@@ -72,7 +73,8 @@ func TestPorts(t *testing.T) {
7273

7374
for _, tt := range tests {
7475
t.Run(tt.testName, func(t *testing.T) {
75-
assert.Equal(t, tt.want, tt.parser.Ports())
76+
ports, _ := tt.parser.Ports()
77+
assert.Equal(t, tt.want, ports)
7678
})
7779
}
7880
}

0 commit comments

Comments
 (0)