uncommented this UT and fixed it

This commit is contained in:
2026-03-10 21:51:14 +00:00
parent 0228e93bbf
commit a8d71e0827
+9 -9
View File
@@ -46,15 +46,15 @@ func Test_TelemetryField(t *testing.T) {
},
expect: []byte{0x03, 0xFF, 0x7F},
},
// {
// name: "test_string",
// tf: TelemetryField{
// Type: DataTypeSTRING,
// Raw: "a cool string!",
// },
// expect: []byte{0x04, 0x0E, 0x61, 0x20, 0x63, 0x6F, 0x6F, 0x6C, 0x20, 0x73,
// 0x74, 0x72, 0x69, 0x6E, 0x67, 0x21},
// },
{
name: "test_string",
tf: TelemetryField{
Type: DataTypeSTRING,
Str: "a cool string!",
},
expect: []byte{0x08, 0x0E, 0x61, 0x20, 0x63, 0x6F, 0x6F, 0x6C, 0x20, 0x73,
0x74, 0x72, 0x69, 0x6E, 0x67, 0x21},
},
}
for _, test := range tests {