From 452eb8b43ae238bbac48170dbcffeefcc34c0672 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 27 Apr 2019 17:41:58 -0400 Subject: [PATCH] Bump timeouts on streetlevel loadimage-type tests This isn't perfect but might avoid spurious test failures. --- test/spec/services/mapillary.js | 12 ++++++------ test/spec/services/openstreetcam.js | 6 +++--- test/spec/services/streetside.js | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/spec/services/mapillary.js b/test/spec/services/mapillary.js index a6f21c344..94bc15121 100644 --- a/test/spec/services/mapillary.js +++ b/test/spec/services/mapillary.js @@ -74,7 +74,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.calledOnce; done(); - }, 50); + }, 200); }); it('does not load images around null island', function(done) { @@ -98,7 +98,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.not.called; done(); - }, 50); + }, 200); }); it.skip('loads multiple pages of image results', function(done) { @@ -139,7 +139,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.calledTwice; done(); - }, 50); + }, 200); }); }); @@ -169,7 +169,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.calledOnce; done(); - }, 50); + }, 200); }); it('does not load signs around null island', function(done) { @@ -197,7 +197,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.not.called; done(); - }, 50); + }, 200); }); it.skip('loads multiple pages of signs results', function(done) { @@ -245,7 +245,7 @@ describe('iD.serviceMapillary', function() { window.setTimeout(function() { expect(spy).to.have.been.calledTwice; done(); - }, 50); + }, 200); }); }); diff --git a/test/spec/services/openstreetcam.js b/test/spec/services/openstreetcam.js index a12c48291..f64f27142 100644 --- a/test/spec/services/openstreetcam.js +++ b/test/spec/services/openstreetcam.js @@ -105,7 +105,7 @@ describe('iD.serviceOpenstreetcam', function() { window.setTimeout(function() { expect(spy).to.have.been.calledOnce; done(); - }, 50); + }, 200); }); it('does not load images around null island', function(done) { @@ -163,7 +163,7 @@ describe('iD.serviceOpenstreetcam', function() { window.setTimeout(function() { expect(spy).to.have.been.not.called; done(); - }, 50); + }, 200); }); it.skip('loads multiple pages of image results', function(done) { @@ -231,7 +231,7 @@ describe('iD.serviceOpenstreetcam', function() { window.setTimeout(function() { expect(spy).to.have.been.calledTwice; done(); - }, 50); + }, 200); }); }); diff --git a/test/spec/services/streetside.js b/test/spec/services/streetside.js index 73d46f3cb..9231f0a31 100644 --- a/test/spec/services/streetside.js +++ b/test/spec/services/streetside.js @@ -83,7 +83,7 @@ describe('iD.serviceStreetside', function() { window.setTimeout(function() { expect(spy).to.have.been.calledOnce; done(); - }, 50); + }, 200); }); it('does not load bubbles around null island', function(done) { @@ -118,7 +118,7 @@ describe('iD.serviceStreetside', function() { window.setTimeout(function() { expect(spy).to.have.been.not.called; done(); - }, 50); + }, 200); }); });