mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
lib/config: Fix tests for changes in previous commit
This commit is contained in:
parent
77c0a19451
commit
139e9b144e
@ -64,6 +64,7 @@ func TestDefaultValues(t *testing.T) {
|
|||||||
AlwaysLocalNets: []string{},
|
AlwaysLocalNets: []string{},
|
||||||
OverwriteRemoteDevNames: false,
|
OverwriteRemoteDevNames: false,
|
||||||
TempIndexMinBlocks: 10,
|
TempIndexMinBlocks: 10,
|
||||||
|
UnackedNotificationIDs: []string{},
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg := New(device1)
|
cfg := New(device1)
|
||||||
@ -103,6 +104,9 @@ func TestDeviceConfig(t *testing.T) {
|
|||||||
AutoNormalize: true,
|
AutoNormalize: true,
|
||||||
MinDiskFreePct: 1,
|
MinDiskFreePct: 1,
|
||||||
MaxConflicts: -1,
|
MaxConflicts: -1,
|
||||||
|
Versioning: VersioningConfiguration{
|
||||||
|
Params: map[string]string{},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,6 +198,7 @@ func TestOverriddenValues(t *testing.T) {
|
|||||||
AlwaysLocalNets: []string{},
|
AlwaysLocalNets: []string{},
|
||||||
OverwriteRemoteDevNames: true,
|
OverwriteRemoteDevNames: true,
|
||||||
TempIndexMinBlocks: 100,
|
TempIndexMinBlocks: 100,
|
||||||
|
UnackedNotificationIDs: []string{},
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
||||||
|
Loading…
Reference in New Issue
Block a user