Skip to content

Commit

Permalink
fix(tests): passing of forceCompatibility flag
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 28, 2021
1 parent a4d13bd commit 6f900b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/integration/index.js
Expand Up @@ -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()

Expand All @@ -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 () => {
Expand Down
8 changes: 4 additions & 4 deletions test/integration/node.js
Expand Up @@ -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'
Expand All @@ -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', () => {
Expand Down Expand Up @@ -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 }
]
})
Expand All @@ -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 }
]
})
Expand Down
4 changes: 2 additions & 2 deletions test/integration/rpc.js
Expand Up @@ -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)
Expand All @@ -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' },
Expand Down

0 comments on commit 6f900b9

Please sign in to comment.