|
@@ -280,6 +280,15 @@ func TestValidateConfigurationErrors(t *testing.T) {
|
|
},
|
|
},
|
|
expectedErr: "123456 is not a valid domain",
|
|
expectedErr: "123456 is not a valid domain",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name: "negative MTU",
|
|
|
|
+ config: &Config{
|
|
|
|
+ CommonConfig: CommonConfig{
|
|
|
|
+ Mtu: -10,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ expectedErr: "invalid default MTU: -10",
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name: "negative max-concurrent-downloads",
|
|
name: "negative max-concurrent-downloads",
|
|
config: &Config{
|
|
config: &Config{
|
|
@@ -397,6 +406,14 @@ func TestValidateConfiguration(t *testing.T) {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name: "with mtu",
|
|
|
|
+ config: &Config{
|
|
|
|
+ CommonConfig: CommonConfig{
|
|
|
|
+ Mtu: 1234,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name: "with max-concurrent-downloads",
|
|
name: "with max-concurrent-downloads",
|
|
config: &Config{
|
|
config: &Config{
|