Commit 8ca70780 authored by Nick Stenning's avatar Nick Stenning

Merge pull request #3252 from hypothesis/fix-slow-tests

Fix a couple of slow front-end tests and enable slow test reporting
parents bf7af70c 7bde508b
......@@ -91,5 +91,8 @@ module.exports = function(config) {
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Log slow tests so we can fix them before they timeout
reportSlowerThan: 500,
});
};
......@@ -37,7 +37,9 @@ describe 'Bridge', ->
it 'adds the channel to the .links property', ->
channel = createChannel()
assert.include(bridge.links, {channel: channel, window: fakeWindow})
assert.isTrue(bridge.links.some((link) ->
link.channel == channel && link.window == fakeWindow
))
it 'registers any existing listeners on the channel', ->
message1 = sandbox.spy()
......
'use strict';
var retryUtil = require('../retry-util');
var toResult = require('./promise-util').toResult;
......@@ -35,8 +37,8 @@ describe('retry-util', function () {
return Promise.reject(error);
});
var wrappedOperation = retryUtil.retryPromiseOperation(operation, {
minTimeout: 1,
maxRetries: 2,
minTimeout: 3,
retries: 2,
});
return toResult(wrappedOperation).then(function (result) {
assert.equal(result.error, error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment