mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-07-26 10:38:43 +00:00
change property name
This commit is contained in:
@@ -12,14 +12,14 @@ func TestInfoTrackerNameChunkEncoding(t *testing.T) {
|
||||
testCases := []struct {
|
||||
description string
|
||||
expected []byte
|
||||
chunk decoders.InfoTrackerNameChunkData
|
||||
data decoders.InfoTrackerNameChunkData
|
||||
}{
|
||||
{
|
||||
description: "InfoTrackerNameChunk",
|
||||
expected: []byte{
|
||||
0, 0, 9, 0, 84, 114, 97, 99, 107, 101, 114, 32, 49,
|
||||
},
|
||||
chunk: decoders.InfoTrackerNameChunkData{
|
||||
data: decoders.InfoTrackerNameChunkData{
|
||||
TrackerName: "Tracker 1",
|
||||
},
|
||||
},
|
||||
@@ -27,7 +27,7 @@ func TestInfoTrackerNameChunkEncoding(t *testing.T) {
|
||||
|
||||
for _, testCase := range testCases {
|
||||
|
||||
actual := EncodeInfoTrackerNameChunk(testCase.chunk.TrackerName)
|
||||
actual := EncodeInfoTrackerNameChunk(testCase.data.TrackerName)
|
||||
|
||||
if !reflect.DeepEqual(actual, testCase.expected) {
|
||||
t.Errorf("Test '%s' failed to encode chunk properly", testCase.description)
|
||||
|
||||
Reference in New Issue
Block a user