Update test for new default interval

The default interval is increasd from 2.5 minutes to 2.6 minutes
This change incorporates the lag between the app uploading
and the data being available in share2nightscout-bridge

This change also accomodates the optimisation of the refresh interval
based on the last collected data timestamp
This commit is contained in:
Chris Pitchford
2021-12-10 00:46:34 +00:00
parent 7b9e07b79f
commit dc312a8b82
+3 -3
View File
@@ -51,7 +51,7 @@ describe('bridge', function ( ) {
var opts = bridge.options(tooLowInterval);
should.exist(opts);
opts.interval.should.equal(150000);
opts.interval.should.equal(156000);
});
it('set too high bridge interval option from env', function () {
@@ -64,7 +64,7 @@ describe('bridge', function ( ) {
var opts = bridge.options(tooHighInterval);
should.exist(opts);
opts.interval.should.equal(150000);
opts.interval.should.equal(156000);
});
it('set no bridge interval option from env', function () {
@@ -77,7 +77,7 @@ describe('bridge', function ( ) {
var opts = bridge.options(noInterval);
should.exist(opts);
opts.interval.should.equal(150000);
opts.interval.should.equal(156000);
});
});