Skip to content

Commit 1f57934

Browse files
add: test for underscore name
1 parent 9cfa350 commit 1f57934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/server/server_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,9 @@ func TestServerIsValidDBName(t *testing.T) {
18871887
err = isValidDBName("-")
18881888
require.ErrorContains(t, err, "punctuation marks and symbols are not allowed in database name")
18891889

1890+
err = isValidDBName("_")
1891+
require.NoError(t, err)
1892+
18901893
err = isValidDBName(strings.Repeat("a", 32))
18911894
require.NoError(t, err)
18921895

0 commit comments

Comments
 (0)