mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-22 18:51:34 +02:00
Remove garbage
This commit is contained in:
parent
2803e1669b
commit
931f165c9a
@ -1,10 +1,7 @@
|
|||||||
package messages
|
package messages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHashID(t *testing.T) {
|
func TestHashID(t *testing.T) {
|
||||||
@ -13,14 +10,4 @@ func TestHashID(t *testing.T) {
|
|||||||
if enc != hashedStringId {
|
if enc != hashedStringId {
|
||||||
t.Errorf("expected %s, got %s", hashedStringId, enc)
|
t.Errorf("expected %s, got %s", hashedStringId, enc)
|
||||||
}
|
}
|
||||||
|
|
||||||
var magicHeader uint32 = 0x2112A442 // size 4 byte
|
|
||||||
|
|
||||||
msg := make([]byte, 4)
|
|
||||||
binary.BigEndian.PutUint32(msg, magicHeader)
|
|
||||||
|
|
||||||
magicHeader2 := []byte{0x21, 0x12, 0xA4, 0x42}
|
|
||||||
|
|
||||||
log.Infof("msg: %v, %v", msg, magicHeader2)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user