feat: publish v1.0.0-rc.36-custom.1
This commit is contained in:
commit
3a7e8f3b54
2381 files changed
+551494
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestValidateOptionValueRejectsInvalidMaxTokenAutoGroups(t *testing.T) {
|
||||
for _, value := range []string{"", "0", "-1", "1.5", "invalid"} {
|
||||
t.Run(value, func(t *testing.T) {
|
||||
assert.Error(t, validateOptionValue("MaxTokenAutoGroups", value))
|
||||
})
|
||||
}
|
||||
require.NoError(t, validateOptionValue("MaxTokenAutoGroups", "999999"))
|
||||
}
|
||||
Reference in new issue
Block a user