package system_setting import ( "testing" ) func TestGetRegionSyncSettings_Defaults(t *testing.T) { settings := GetRegionSyncSettings() if settings == nil { t.Fatal("GetRegionSyncSettings() returned nil") } if settings.Enabled { t.Error("default Enabled should be false") } if settings.MinBalanceThreshold != 100000 { t.Errorf("MinBalanceThreshold = %d, want 100000", settings.MinBalanceThreshold) } if settings.SyncIntervalSeconds != 60 { t.Errorf("SyncIntervalSeconds = %d, want 60", settings.SyncIntervalSeconds) } if settings.MaxRetryCount != 3 { t.Errorf("MaxRetryCount = %d, want 3", settings.MaxRetryCount) } if settings.SyncBatchSize != 100 { t.Errorf("SyncBatchSize = %d, want 100", settings.SyncBatchSize) } }