mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-16 15:28:52 +00:00
Fix docker utils tests for docker v25
From docker 25, the engine will validate IPAM config. This would cause the docker utils test to fail since the network/subnet configuration was incorrect. Change-type: patch
This commit is contained in:
parent
23fae633ca
commit
6ee606806d
@ -21,8 +21,8 @@ describe('lib/docker-utils', () => {
|
||||
Driver: 'default',
|
||||
Config: [
|
||||
{
|
||||
Gateway: '10.0.105.1',
|
||||
Subnet: '10.0.105.0/16',
|
||||
Gateway: '10.105.0.1',
|
||||
Subnet: '10.105.0.0/16',
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -36,7 +36,7 @@ describe('lib/docker-utils', () => {
|
||||
// test using existing data...
|
||||
it('should return the correct gateway address for supervisor0', async () => {
|
||||
const gateway = await dockerUtils.getNetworkGateway('supervisor0');
|
||||
expect(gateway).to.equal('10.0.105.1');
|
||||
expect(gateway).to.equal('10.105.0.1');
|
||||
});
|
||||
|
||||
it('should return the correct gateway address for host', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user