Skip to content

Commit eb69874

Browse files
committed
修正测试错误
1 parent ab8124c commit eb69874

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

datautil/datautil_test.go

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,18 @@ func TestMakeChartPack(t *testing.T) {
196196
},
197197
listV: variable.ListT{
198198
0x80123456: {
199-
Board: 1,
200-
Name: "a",
201-
Type: "float",
202-
Addr: 0x80123456,
199+
Board: 1,
200+
Name: "a",
201+
Type: "float",
202+
Addr: 0x80123456,
203+
SignalGain: 1,
203204
},
204205
0x80654321: {
205-
Board: 1,
206-
Name: "b",
207-
Type: "int",
208-
Addr: 0x80654321,
206+
Board: 1,
207+
Name: "b",
208+
Type: "int",
209+
Addr: 0x80654321,
210+
SignalGain: 1,
209211
},
210212
},
211213
wantChart: variable.ListChartT{
@@ -242,10 +244,11 @@ func TestMakeChartPack(t *testing.T) {
242244
},
243245
listV: variable.ListT{
244246
0x80123456: {
245-
Board: 1,
246-
Name: "a",
247-
Type: "float",
248-
Addr: 0x80123456,
247+
Board: 1,
248+
Name: "a",
249+
Type: "float",
250+
Addr: 0x80123456,
251+
SignalGain: 1,
249252
},
250253
},
251254
wantChart: variable.ListChartT{

0 commit comments

Comments
 (0)