Skip to content

Commit

Permalink
Run integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Oct 14, 2020
1 parent 03d3131 commit c59e6e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cucumber/docker/run_docker.sh
Expand Up @@ -20,7 +20,7 @@ mv test-harness/features tests/cucumber/features

npm run test:browser:prepare

make unit
make unit && make integration
# docker run -it \
# --network host \
# js-sdk-testing:latest
6 changes: 6 additions & 0 deletions tests/cucumber/steps/steps.js
Expand Up @@ -1974,6 +1974,9 @@ module.exports = function getSteps(options) {
let indexerIntegrationClients = {};

Given('indexer client {int} at {string} port {int} with token {string}', function (clientNum, indexerHost, indexerPort, indexerToken) {
if (!indexerHost.startsWith('http')) {
indexerHost = 'http://' + indexerHost;
}
indexerIntegrationClients[clientNum] = new algosdk.Indexer(indexerToken, indexerHost, indexerPort, {})
});

Expand Down Expand Up @@ -2608,6 +2611,9 @@ module.exports = function getSteps(options) {
});

Given('an algod v{int} client connected to {string} port {int} with token {string}', function (clientVersion, host, port, token) {
if (!host.startsWith('http')) {
host = 'http://' + host;
}
this.v2Client = new algosdk.Algodv2(token, host, port, {});
});

Expand Down

0 comments on commit c59e6e1

Please sign in to comment.