Skip to content

Commit 109ffe5

Browse files
committed
Make test run more securely
1 parent c7c0a4a commit 109ffe5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/jasmine/tests/gl2d_plot_interact_test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ describe('Test gl2d plots', function() {
257257
expect(gd.layout.xaxis.range).toBeCloseToArray(originalX, precision);
258258
expect(gd.layout.yaxis.range).toBeCloseToArray(originalY, precision);
259259
})
260-
.then(delay(200))
260+
.then(delay(20))
261261
.then(function() {
262262
gd.on('plotly_relayout', relayoutCallback);
263263
})
@@ -311,7 +311,7 @@ describe('Test gl2d plots', function() {
311311
expect(gd.layout.xaxis.range).toBeCloseToArray(originalX, precision);
312312
expect(gd.layout.yaxis.range).toBeCloseToArray(originalY, precision);
313313
})
314-
.then(delay(200))
314+
.then(delay(20))
315315
.then(function() {
316316
// callback count expectation: X and back; Y and back; XY and back
317317
expect(relayoutCallback).toHaveBeenCalledTimes(6);
@@ -359,7 +359,7 @@ describe('Test gl2d plots', function() {
359359
.then(done);
360360
});
361361

362-
it('should display selection of big number of points', function(done) {
362+
it('@noCI should display selection of big number of points', function(done) {
363363
// generate large number of points
364364
var x = [], y = [], n = 2e2, N = n * n;
365365
for(var i = 0; i < N; i++) {
@@ -377,9 +377,7 @@ describe('Test gl2d plots', function() {
377377
};
378378

379379
Plotly.plot(gd, mock)
380-
.then(delay(1000))
381380
.then(select([[160, 100], [180, 100]]))
382-
.then(delay(1000))
383381
.then(function() {
384382
expect(readPixel(gd.querySelector('.gl-canvas-context'), 168, 100)[3]).toBe(0);
385383
expect(readPixel(gd.querySelector('.gl-canvas-context'), 158, 100)[3]).not.toBe(0);

0 commit comments

Comments
 (0)