Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Aug 22, 2024
1 parent cfa9864 commit 13bf5b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin/storage/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ func (s *StorageIntegration) testGetServices(t *testing.T) {
require.NoError(t, err)
sort.Strings(actual)
t.Logf("Retrieved services: %v", actual)
match := assert.ObjectsAreEqualValues(expected, actual)
if !match && len(actual) > len(expected) {
if len(actual) > len(expected) {
// If the storage backend returns more services than expected, let's log traces for those
t.Log("🛑 Found unexpected services!")
for _, service := range actual {
Expand All @@ -166,7 +165,7 @@ func (s *StorageIntegration) testGetServices(t *testing.T) {
}
}
}
return match
return assert.ObjectsAreEqualValues(expected, actual)
})

if !assert.True(t, found) {
Expand Down

0 comments on commit 13bf5b2

Please sign in to comment.