From 8b58d217b09f8ee60a034706d177717e30d0a488 Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 8 Nov 2023 16:39:43 -0600 Subject: [PATCH] fix service arbitrary to make fields unique --- property_tests/arbitraries/candid/reference/service_arb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/property_tests/arbitraries/candid/reference/service_arb.ts b/property_tests/arbitraries/candid/reference/service_arb.ts index cf093fe742..79f7ffbd29 100644 --- a/property_tests/arbitraries/candid/reference/service_arb.ts +++ b/property_tests/arbitraries/candid/reference/service_arb.ts @@ -66,7 +66,7 @@ const ServiceMethodArb = fc export const ServiceArb = fc .tuple( UniqueIdentifierArb('typeDeclaration'), - fc.array(ServiceMethodArb), + fc.uniqueArray(ServiceMethodArb, { selector: (entry) => entry.name }), PrincipalArb ) .map(([name, serviceMethods, principal]): CandidMeta => {