diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-07 16:00:29 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-07 16:00:29 -0700 |
| commit | 40414f9295dd301f1c714bc3067392b7cc8f8427 (patch) | |
| tree | f692f32a666eab5ea9f42a8b3aa0ad0cd22be6bb /hotline/tracker_test.go | |
| parent | 041c2df698d4702816cf8472d212553d289a2c0c (diff) | |
Fix hardcoded port in tracker registration
Diffstat (limited to 'hotline/tracker_test.go')
| -rw-r--r-- | hotline/tracker_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/tracker_test.go b/hotline/tracker_test.go index b904462..72d84ba 100644 --- a/hotline/tracker_test.go +++ b/hotline/tracker_test.go @@ -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", |