Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async tests on IE8/9 disconnects browser due to shared activity timeout #33

Open
nehz opened this issue Mar 16, 2015 · 0 comments
Open

Comments

@nehz
Copy link

nehz commented Mar 16, 2015

There seems to be a weird issue where IE8/9 executes async tests as one single test.

For example, the karma ui will go from 0/10 tests executed to 10/10 executed where as in IE10/11 it will execute them one by one. This is an issue if some individual tests takes long as each test is added together towards the browserNoActivityTimeout limit, which will cause karma to disconnect.

Some code to illustrate this:

describe('test', function() {
  function test(done) {
    setTimeout(function() { done(); }, 1000);
  }

  for(var i = 0; i < 11; i++) {
    it('should pass', test);
  }
});

using

customLaunchers: {
  IE8: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE8'
  },
  IE9: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE9'
  },
  IE10: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE10'
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant