Skip to content

Commit bf8aa66

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <[email protected]>
1 parent 70d7d33 commit bf8aa66

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/library/resources/helper_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,7 @@ func TestApplyCaps(t *testing.T) {
393393
for _, tt := range tests {
394394
t.Run(tt.name, func(t *testing.T) {
395395
actual := ApplyCaps(tt.base, tt.caps)
396-
if !assert.Equal(t, tt.expected, actual) {
397-
// Print more useful diff since quantity is not a simple struct
398-
expectedYaml, _ := yaml.Marshal(tt.expected)
399-
actualYaml, _ := yaml.Marshal(actual)
400-
t.Logf("\nExpected:\n%s\nActual:\n%s", expectedYaml, actualYaml)
401-
}
396+
assert.Equal(t, tt.expected, actual)
402397
})
403398
}
404399
}

0 commit comments

Comments
 (0)