Add tests for new disable-scan flag

This commit is contained in:
2025-09-26 16:07:05 +02:00
parent 9b87d28433
commit 00749ae529
3 changed files with 90 additions and 13 deletions

View File

@@ -77,6 +77,17 @@ func TestParseFlags(t *testing.T) {
},
},
},
{
[]string{"-disable-scan"},
settings{
BindAddress: ":8080",
Server: serverSettings{
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
},
DisableTCPScan: true,
},
},
{
[]string{"-bind", ":8001", "-geoip2-city", "/city-path", "-geoip2-asn", "/asn-path"},
settings{