mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-06 20:13:59 -05:00
14 lines
252 B
Go
14 lines
252 B
Go
package api
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v7/testing/require"
|
|
)
|
|
|
|
func TestGenerateRandomHexString(t *testing.T) {
|
|
token, err := GenerateRandomHexString()
|
|
require.NoError(t, err)
|
|
require.NoError(t, ValidateAuthToken(token))
|
|
}
|