mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user