From a7730b02ac41391de9b6349873b13709f5c5cf54 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Mon, 4 Dec 2023 21:38:31 +0000 Subject: [PATCH] test(host_catalog): Fix flaky assertion --- .../handlers/host_catalogs/host_catalog_service_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/daemon/controller/handlers/host_catalogs/host_catalog_service_test.go b/internal/daemon/controller/handlers/host_catalogs/host_catalog_service_test.go index a33ef8f5ab..9500a4df9f 100644 --- a/internal/daemon/controller/handlers/host_catalogs/host_catalog_service_test.go +++ b/internal/daemon/controller/handlers/host_catalogs/host_catalog_service_test.go @@ -1551,6 +1551,9 @@ func TestUpdate_Plugin(t *testing.T) { cmpopts.SortSlices(func(a, b protocmp.Message) bool { return a.String() < b.String() }), + cmpopts.SortSlices(func(a, b *structpb.Value) bool { + return a.String() < b.String() + }), )) }, },