Skip to content

Commit dc312a8

Browse files
committed
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
1 parent 7b9e07b commit dc312a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/bridge.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('bridge', function ( ) {
5151
var opts = bridge.options(tooLowInterval);
5252
should.exist(opts);
5353

54-
opts.interval.should.equal(150000);
54+
opts.interval.should.equal(156000);
5555
});
5656

5757
it('set too high bridge interval option from env', function () {
@@ -64,7 +64,7 @@ describe('bridge', function ( ) {
6464
var opts = bridge.options(tooHighInterval);
6565
should.exist(opts);
6666

67-
opts.interval.should.equal(150000);
67+
opts.interval.should.equal(156000);
6868
});
6969

7070
it('set no bridge interval option from env', function () {
@@ -77,7 +77,7 @@ describe('bridge', function ( ) {
7777
var opts = bridge.options(noInterval);
7878
should.exist(opts);
7979

80-
opts.interval.should.equal(150000);
80+
opts.interval.should.equal(156000);
8181
});
8282

8383
});

0 commit comments

Comments
 (0)