cloudfoundry-incubator/stratos

View on GitHub
src/test-e2e/helpers/extend-test-helpers.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function extendE2ETestTime(newTimeout = 140000) {
  let originalTimeout;

  // Might take a bit longer to deploy the app than the global default timeout allows
  beforeEach(() => {
    originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
    jasmine.DEFAULT_TIMEOUT_INTERVAL = newTimeout;
  });

  afterEach(() => {
    jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
  });
}