mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-03-27 18:34:12 +00:00
14 lines
264 B
Go
14 lines
264 B
Go
package discovery
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestConfigDefaults(t *testing.T) {
|
|
cfg := Config{DiscoveryInterval: 5 * time.Second, MaxConnections: 3}
|
|
if cfg.DiscoveryInterval <= 0 || cfg.MaxConnections <= 0 {
|
|
t.Fatalf("invalid config: %+v", cfg)
|
|
}
|
|
}
|