]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/tracker_test.go
Improve user-friendliness of default config
[rbdr/mobius] / hotline / tracker_test.go
index b90446274fa70f28ba6088b956c44f37392941e3..72d84ba882bf614486ec51d74572492606efd72d 100644 (file)
@@ -7,7 +7,7 @@ import (
 
 func TestTrackerRegistration_Payload(t *testing.T) {
        type fields struct {
-               Port        []byte
+               Port        [2]byte
                UserCount   int
                PassID      []byte
                Name        string
@@ -21,7 +21,7 @@ func TestTrackerRegistration_Payload(t *testing.T) {
                {
                        name: "returns expected payload bytes",
                        fields: fields{
-                               Port:        []byte{0x00, 0x10},
+                               Port:        [2]byte{0x00, 0x10},
                                UserCount:   2,
                                PassID:      []byte{0x00, 0x00, 0x00, 0x01},
                                Name:        "Test Serv",