Skip to content

Commit 58f0ca4

Browse files
Matovidloclaude
andcommitted
fix: use assert.Len instead of assert.Equal+len (testifylint)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 485ae67 commit 58f0ca4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/pkg/mapper/relations/link_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func TestRelationsMapperVariablesSharedAcrossConsumers(t *testing.T) {
152152
// linkRelations(valuesRow) from adding a VariablesValuesFromRelation to any consumer.
153153
// consumer1 retains its original single VariablesValuesFromRelation (no duplicate was
154154
// added from the values-row side), and consumer2 has none at all.
155-
assert.Equal(t, 1, len(consumer1.Remote.Relations.GetByType(model.VariablesValuesFromRelType)))
155+
assert.Len(t, consumer1.Remote.Relations.GetByType(model.VariablesValuesFromRelType), 1)
156156
assert.Empty(t, consumer2.Remote.Relations.GetByType(model.VariablesValuesFromRelType))
157157

158158
// AfterLocalOperation is structurally identical to AfterRemoteOperation (same two-pass

0 commit comments

Comments
 (0)