From 13bf5b21d66fcb06d4da385f4931ea29eb9f2214 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Thu, 22 Aug 2024 19:49:13 -0400 Subject: [PATCH] simpler Signed-off-by: Yuri Shkuro --- plugin/storage/integration/integration.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/storage/integration/integration.go b/plugin/storage/integration/integration.go index f13abc58c01..09bb5114cf2 100644 --- a/plugin/storage/integration/integration.go +++ b/plugin/storage/integration/integration.go @@ -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 { @@ -166,7 +165,7 @@ func (s *StorageIntegration) testGetServices(t *testing.T) { } } } - return match + return assert.ObjectsAreEqualValues(expected, actual) }) if !assert.True(t, found) {