Fix apiUpdatePollInterval default to line up with API

This commit is contained in:
Felipe Lalanne 2022-02-09 17:15:22 -03:00
parent a4d91d381a
commit 118875e12e
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ export const schemaTypes = {
},
appUpdatePollInterval: {
type: PermissiveNumber,
default: 60000,
default: 900000,
},
instantUpdates: {
type: PermissiveBoolean,

View File

@ -118,7 +118,7 @@ const configKeys: Dictionary<ConfigOption> = {
appUpdatePollInterval: {
envVarName: 'SUPERVISOR_POLL_INTERVAL',
varType: 'int',
defaultValue: '60000',
defaultValue: '900000',
},
instantUpdates: {
envVarName: 'SUPERVISOR_INSTANT_UPDATE_TRIGGER',

View File

@ -59,7 +59,7 @@ describe('Config', () => {
it('allows deleting a config.json key and returns a default value if none is set', async () => {
await conf.remove('appUpdatePollInterval');
const poll = await conf.get('appUpdatePollInterval');
return expect(poll).to.equal(60000);
return expect(poll).to.equal(900000);
});
it('allows deleting a config.json key if it is null', async () => {

View File

@ -250,7 +250,7 @@ describe('Device Backend Config', () => {
HOST_FIREWALL_MODE: 'off',
HOST_DISCOVERABILITY: 'true',
SUPERVISOR_VPN_CONTROL: 'true',
SUPERVISOR_POLL_INTERVAL: '60000',
SUPERVISOR_POLL_INTERVAL: '900000',
SUPERVISOR_LOCAL_MODE: 'false',
SUPERVISOR_CONNECTIVITY_CHECK: 'true',
SUPERVISOR_LOG_CONTROL: 'true',