Skip to content

Commit

Permalink
temp working branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dallasjohnson committed Oct 19, 2019
1 parent 3315bb2 commit 985528f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const WORKING_DIRECTORY = process.cwd();
/** @hidden Temporary docker resource directory */
const TEMP_DOCKER_DIRECTORY = path.join(__dirname, '.temp-docker');
/** @hidden Slowest Expected test duration */
const TEST_EXPECTED_DURATION = 2000;
const TEST_EXPECTED_DURATION = 5000;
/** @hidden Maximum test duration */
const TEST_TIMEOUT_DURATION = 10000;
const TEST_TIMEOUT_DURATION = 30000;
/** @hidden Maximum number of EOS connection attempts before fail */
const MAX_CONNECTION_ATTEMPTS = 8;

Expand Down
7 changes: 5 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,15 @@ export const assertEOSError = async (
};

/**
* Asserts EOS throws an error and validates the error output name matches the expected `eosErrorName`
* Asserts EOS throws an error and validates the error output name matches the
* expected 'eosio_assert_message_exception' and the error message includes `description`
* @author Dallas Johnson <github.com/dallasjohnson>
* @param operation Operation promise
* @param description Output message description
*/
export const assertEOSMessageError = async (operation: Promise<any>, message: string) => {

export const assertEOSErrorIncludesMessage = async (operation: Promise<any>, message: string) => {
const eosErrorName = 'eosio_assert_message_exception';
// Execute operation and handle exceptions
try {
Expand Down

0 comments on commit 985528f

Please sign in to comment.