Skip to content

Commit 1cda5fd

Browse files
dexter0195swiatekm
andauthored
Update internal/manifests/collector/parser/exporter/exporter_test.go
Co-authored-by: Mikołaj Świątek <[email protected]>
1 parent 2feb5ba commit 1cda5fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ func TestPorts(t *testing.T) {
7272

7373
for _, tt := range tests {
7474
t.Run(tt.testName, func(t *testing.T) {
75-
if got, _ := tt.parser.Ports(); !reflect.DeepEqual(got, tt.want) {
76-
t.Errorf("Ports(%v, = %v, want %v", tt.parser, got, tt.want)
77-
}
75+
assert.Equal(t, tt.want, tt.parser.Ports())
7876
})
7977
}
8078
}

0 commit comments

Comments
 (0)