From 6f900b98cc9a9e0d79b0ad760635936431758f1a Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Mon, 26 Apr 2021 22:36:17 +0300 Subject: [PATCH] fix(tests): passing of forceCompatibility flag --- test/integration/index.js | 4 ++-- test/integration/node.js | 8 ++++---- test/integration/rpc.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/integration/index.js b/test/integration/index.js index 55704a2a60..0789dc0353 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -28,7 +28,7 @@ export const compilerUrl = process.env.COMPILER_URL || 'http://localhost:3080' export const publicKey = process.env.PUBLIC_KEY || 'ak_2dATVcZ9KJU5a8hdsVtTv21pYiGWiPbmVcU1Pz72FFqpk9pSRR' const secretKey = process.env.SECRET_KEY || 'bf66e1c256931870908a649572ed0257876bb84e3cdf71efb12f56c7335fad54d5cf08400e988222f26eb4b02c8f89077457467211a6e6d955edb70749c6a33b' export const networkId = process.env.TEST_NETWORK_ID || 'ae_devnet' -const ignoreVersion = process.env.IGNORE_VERSION || false +export const ignoreVersion = process.env.IGNORE_VERSION || false export const genesisAccount = MemoryAccount({ keypair: { publicKey, secretKey } }) export const account = Crypto.generateKeyPair() @@ -41,7 +41,7 @@ export const BaseAe = async (params = {}) => Universal compilerUrl, ignoreVersion, accounts: [...params.accounts || [], genesisAccount], - nodes: [{ name: 'test', instance: await Node({ url, internalUrl }) }] + nodes: [{ name: 'test', instance: await Node({ url, internalUrl, ignoreVersion }) }] }) const spendPromise = (async () => { diff --git a/test/integration/node.js b/test/integration/node.js index 5f8cce5247..82d63698d3 100644 --- a/test/integration/node.js +++ b/test/integration/node.js @@ -16,7 +16,7 @@ */ import Node from '../../src/node' -import { url, internalUrl } from './' +import { url, internalUrl, ignoreVersion } from './' import { describe, it, before } from 'mocha' import { expect } from 'chai' @@ -27,7 +27,7 @@ describe('Node client', function () { let client before(async function () { - client = await Node({ url, internalUrl }) + client = await Node({ url, internalUrl, ignoreVersion }) }) it('determines remote version', () => { @@ -81,7 +81,7 @@ describe('Node client', function () { it('Can change Node', async () => { const nodes = await NodePool({ nodes: [ - { name: 'first', instance: await Node({ url, internalUrl }) }, + { name: 'first', instance: await Node({ url, internalUrl, ignoreVersion }) }, { name: 'second', instance: client } ] }) @@ -94,7 +94,7 @@ describe('Node client', function () { it('Fail on undefined node', async () => { const nodes = await NodePool({ nodes: [ - { name: 'first', instance: await Node({ url, internalUrl }) }, + { name: 'first', instance: await Node({ url, internalUrl, ignoreVersion }) }, { name: 'second', instance: client } ] }) diff --git a/test/integration/rpc.js b/test/integration/rpc.js index 14965865c4..a627d81ac1 100644 --- a/test/integration/rpc.js +++ b/test/integration/rpc.js @@ -23,7 +23,7 @@ import BrowserWindowMessageConnection from '../../src/utils/aepp-wallet-communic import { getBrowserAPI, getHandler } from '../../src/utils/aepp-wallet-communication/helpers' import { METHODS, RPC_STATUS } from '../../src/utils/aepp-wallet-communication/schema' import { generateKeyPair, verify } from '../../src/utils/crypto' -import { compilerUrl, genesisAccount, internalUrl, networkId, publicKey, url } from './' +import { compilerUrl, genesisAccount, internalUrl, networkId, publicKey, url, ignoreVersion } from './' describe('Aepp<->Wallet', function () { this.timeout(6000) @@ -33,7 +33,7 @@ describe('Aepp<->Wallet', function () { let connectionFromAeppToWallet before(async function () { - node = await Node({ url, internalUrl }) + node = await Node({ url, internalUrl, ignoreVersion }) connections = getConnections() connectionFromWalletToAepp = BrowserWindowMessageConnection({ connectionInfo: { id: 'from_wallet_to_aepp' },