1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/hscontrol/util/string_test.go
Kristoffer Dalby 95bd128f86
add @ to integration tests
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-03-27 15:07:55 +01:00

17 lines
288 B
Go

package util
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestGenerateRandomStringDNSSafe(t *testing.T) {
for range 100000 {
str, err := GenerateRandomStringDNSSafe(8)
require.NoError(t, err)
assert.Len(t, str, 8)
}
}