diff --git a/integration-tests/rpc-nodes.spec.ts b/integration-tests/rpc-nodes.spec.ts index 8e56510280..df5ef68a38 100644 --- a/integration-tests/rpc-nodes.spec.ts +++ b/integration-tests/rpc-nodes.spec.ts @@ -1,5 +1,5 @@ -import { CONFIGS } from './config'; -import { DefaultContractType } from "@taquito/taquito"; +import { CONFIGS, NetworkType } from './config'; +import { DefaultContractType, Protocols } from "@taquito/taquito"; import { RpcClientCache, RpcClient, RPCRunViewParam, RPCRunScriptViewParam, PendingOperationsV1, PendingOperationsV2, PvmKind } from '@taquito/rpc'; import { encodeExpr } from '@taquito/utils'; import { Schema } from '@taquito/michelson-encoder'; @@ -20,6 +20,7 @@ CONFIGS().forEach( }) => { const Tezos = lib; const unrestrictedRPCNode = rpc.endsWith("ecadinfra.com") ? test.skip : test; + const oxfordnetAndAlpha = protocol === Protocols.Proxford || protocol === Protocols.ProtoALpha ? test : test.skip; let ticketContract: DefaultContractType; @@ -488,7 +489,7 @@ CONFIGS().forEach( done(); }); - it('Verify that rpcClient.getPendingOperations will retrieve the pending operations in mempool', async (done) => { + it('Verify that rpcClient.getPendingOperations version1 will retrieve the pending operations in mempool with property applied', async (done) => { const pendingOperations1 = await rpcClient.getPendingOperations() as PendingOperationsV1; expect(pendingOperations1).toBeDefined(); expect(pendingOperations1.applied).toBeInstanceOf(Array); @@ -496,7 +497,10 @@ CONFIGS().forEach( expect(pendingOperations1.outdated).toBeInstanceOf(Array); expect(pendingOperations1.branch_delayed).toBeInstanceOf(Array); expect(pendingOperations1.branch_refused).toBeInstanceOf(Array); + done(); + }); + oxfordnetAndAlpha('Verify that rpcClient.getPendingOperations version2 will retrieve the pending operations in mempool with property validated', async (done) => { const pendingOperations2 = await rpcClient.getPendingOperations({ version: '2' }) as PendingOperationsV2; expect(pendingOperations2).toBeDefined(); expect(pendingOperations2.validated).toBeInstanceOf(Array); @@ -505,7 +509,7 @@ CONFIGS().forEach( expect(pendingOperations2.branch_delayed).toBeInstanceOf(Array); expect(pendingOperations2.branch_refused).toBeInstanceOf(Array); done(); - }); + }) it('Verify that rpcClient.getOriginationProof will retrieve the proof needed for smart rollup originate', async (done) => { const proof = await rpcClient.getOriginationProof({