mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
Disable default global scan timeout
This commit is contained in:
+4
-1
@@ -34,7 +34,7 @@ func TestBuildConfigFromFlags_ScanControl(t *testing.T) {
|
||||
ThreadNum: 600,
|
||||
ModuleThreadNum: 20,
|
||||
TimeoutSec: 3,
|
||||
GlobalTimeout: 180,
|
||||
GlobalTimeout: 0,
|
||||
},
|
||||
validate: func(t *testing.T, cfg *Config) {
|
||||
if cfg.Mode != "all" {
|
||||
@@ -49,6 +49,9 @@ func TestBuildConfigFromFlags_ScanControl(t *testing.T) {
|
||||
if cfg.Timeout != 3*time.Second {
|
||||
t.Errorf("Timeout = %v, want %v", cfg.Timeout, 3*time.Second)
|
||||
}
|
||||
if cfg.GlobalTimeout != 0 {
|
||||
t.Errorf("GlobalTimeout = %v, want disabled", cfg.GlobalTimeout)
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user