Skip to content

Commit

Permalink
Small changes to give the tests more time before timing out. Also add…
Browse files Browse the repository at this point in the history
…s imports to generated types
  • Loading branch information
dallasjohnson committed Jan 17, 2020
1 parent bf3cb6f commit fdc08d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const TEMP_DOCKER_DIRECTORY = path.join(__dirname, '.temp-docker');
/** @hidden Slowest Expected test duration */
const TEST_EXPECTED_DURATION = 5000;
/** @hidden Maximum test duration */
const TEST_TIMEOUT_DURATION = 30000;
const TEST_TIMEOUT_DURATION = 80000;
/** @hidden Maximum number of EOS connection attempts before fail */
const MAX_CONNECTION_ATTEMPTS = 8;
const MAX_CONNECTION_ATTEMPTS = 20;

/**
* Extracts the version identifier from a string
Expand Down Expand Up @@ -286,7 +286,7 @@ export const runTests = async () => {
mocha.slow(TEST_EXPECTED_DURATION);
mocha.timeout(TEST_TIMEOUT_DURATION);
mocha.reporter(ConfigManager.testReporter);
// mocha.bail(true);
mocha.bail(true);

// Run the tests.
await new Promise((resolve, reject) =>
Expand Down
9 changes: 8 additions & 1 deletion src/contracts/typeGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ export const generateTypes = async (contractIdentifier: string) => {
'',
];
// Define imports
const imports = ['Account', 'Contract', 'GetTableRowsOptions', 'ExtendedAsset', 'ExtendedSymbol'];
const imports = [
'Account',
'Contract',
'GetTableRowsOptions',
'ExtendedAsset',
'ExtendedSymbol',
'ActorPermission',
];
if (contractTables.length > 0) imports.push('TableRowsResult');
// Generate import definitions
result.push(`import { ${imports.join(', ')} } from 'lamington';`);
Expand Down

0 comments on commit fdc08d2

Please sign in to comment.