mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
16 lines
282 B
Go
16 lines
282 B
Go
package frontend
|
|
|
|
import (
|
|
"flag"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSearchSharderConfigDefaults(t *testing.T) {
|
|
cfg := &Config{}
|
|
cfg.RegisterFlagsAndApplyDefaults("", &flag.FlagSet{})
|
|
|
|
assert.Equal(t, uint32(256*1024), cfg.Search.Sharder.MaxLimit)
|
|
}
|