mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
a9e6742d9a
- Fix relay client tests - Fix auth ID unmarshalling - Add magic header check
14 lines
239 B
Go
14 lines
239 B
Go
package messages
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestHashID(t *testing.T) {
|
|
hashedID, hashedStringId := HashID("alice")
|
|
enc := HashIDToString(hashedID)
|
|
if enc != hashedStringId {
|
|
t.Errorf("expected %s, got %s", hashedStringId, enc)
|
|
}
|
|
}
|