mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-28 01:28:52 +00:00
Fix apiUpdatePollInterval default to line up with API
This commit is contained in:
parent
a4d91d381a
commit
118875e12e
@ -60,7 +60,7 @@ export const schemaTypes = {
|
||||
},
|
||||
appUpdatePollInterval: {
|
||||
type: PermissiveNumber,
|
||||
default: 60000,
|
||||
default: 900000,
|
||||
},
|
||||
instantUpdates: {
|
||||
type: PermissiveBoolean,
|
||||
|
@ -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',
|
||||
|
@ -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 () => {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user