Skip to content

Commit

Permalink
fix: remove overall verification timeout (see pact-foundation/pact-js…
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 16, 2022
1 parent 6e4b758 commit bb52158
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/verifier/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logger from '../logger';
import { timeout, TimeoutError } from 'promise-timeout';

import { VerifierOptions } from './types';
import { verify } from './nativeVerifier';
Expand All @@ -21,16 +20,7 @@ export class Verifier {
public verify(): Promise<string> {
logger.info('Verifying Pact Files');

return timeout(verify(this.options), this.options.timeout as number).catch(
(err: Error) => {
if (err instanceof TimeoutError) {
throw new Error(
`Timeout waiting for verification process to complete`
);
}
throw err;
}
);
return verify(this.options);
}
}

Expand Down

0 comments on commit bb52158

Please sign in to comment.