--- a/tests/src/pallet-presence.test.ts +++ b/tests/src/pallet-presence.test.ts @@ -20,7 +20,6 @@ const requiredPallets = [ 'balances', 'common', - 'randomnesscollectiveflip', 'timestamp', 'transactionpayment', 'treasury', @@ -98,11 +97,11 @@ }); itSub('Required pallets are present', ({helper}) => { - expect(helper.fetchAllPalletNames()).to.contain.members([...requiredPallets]); + expect(helper.fetchAllPalletNames()).to.contain.members([...requiredPallets].sort()); }); itSub('Governance and consensus pallets are present', ({helper}) => { - expect(helper.fetchAllPalletNames()).to.contain.members([...consensusPallets]); + expect(helper.fetchAllPalletNames()).to.contain.members([...consensusPallets].sort()); }); itSub('No extra pallets are included', ({helper}) => { --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -736,7 +736,7 @@ fetchAllPalletNames(): string[] { if(this.api === null) throw Error('API not initialized'); - return this.api.runtimeMetadata.asLatest.pallets.map(m => m.name.toString().toLowerCase()); + return this.api.runtimeMetadata.asLatest.pallets.map(m => m.name.toString().toLowerCase()).sort(); } fetchMissingPalletNames(requiredPallets: string[]): string[] {