mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-18 19:09:09 +02:00
use const and do array copy
This commit is contained in:
@@ -19,7 +19,7 @@ func TestPAT_GenerateToken_Hashing(t *testing.T) {
|
||||
func TestPAT_GenerateToken_Prefix(t *testing.T) {
|
||||
_, plainToken, _ := generateNewToken()
|
||||
fourCharPrefix := plainToken[:4]
|
||||
assert.Equal(t, "nbp_", fourCharPrefix)
|
||||
assert.Equal(t, PATPrefix, fourCharPrefix)
|
||||
}
|
||||
|
||||
func TestPAT_GenerateToken_Checksum(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user