-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add checkout step for aptos chore: test chore: increase sleep time chore: clean up
- Loading branch information
Showing
11 changed files
with
248 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ module.exports = { | |
recursive: true, | ||
timeout: 600000, | ||
slow: 15000, | ||
file: ['examples/tests/checkExamples.js'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
"enabled": false | ||
}, | ||
"cosmos": { | ||
"enabled": true | ||
"enabled": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
'use strict'; | ||
|
||
require('dotenv').config(); | ||
|
||
const { start, deploy, executeAptosExample, getWallet, getEVMChains, relayers } = require('../../scripts/libs'); | ||
const { | ||
destroyExported, | ||
utils: { setLogger }, | ||
} = require('@axelar-network/axelar-local-dev'); | ||
const fs = require('fs-extra'); | ||
const { configPath } = require('../../config'); | ||
|
||
// disable logging | ||
setLogger((...args) => {}); | ||
|
||
console.log = () => {}; | ||
|
||
const aptosExamples = ['call-contract', 'token-linker']; | ||
|
||
describe('Verify Aptos Examples', function () { | ||
// marked as slow if it takes longer than 15 seconds to run each test. | ||
const wallet = getWallet(); | ||
const testChains = ['Avalanche', 'Fantom', 'Polygon']; | ||
|
||
before(async () => { | ||
// Remove local-evm.json before each test to ensure a clean start | ||
if (fs.existsSync(configPath.localEvmChains)) { | ||
fs.unlinkSync(configPath.localEvmChains); | ||
} | ||
|
||
await start([wallet.address], testChains, { relayInterval: 500, skipCosmos: true }); | ||
}); | ||
|
||
after(async () => { | ||
await destroyExported(relayers); | ||
}); | ||
|
||
for (const exampleName of aptosExamples) { | ||
it(exampleName, async function () { | ||
const example = rootRequire(`examples/aptos/${exampleName}/index.js`); | ||
const chains = getEVMChains('local', testChains); | ||
|
||
if (example.deploy) await deploy('local', chains, wallet, example); | ||
|
||
await executeAptosExample(chains, [], wallet, example); | ||
}); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.