Skip to content

Commit 7037ee3

Browse files
committed
explicit spread
1 parent 5a42bb6 commit 7037ee3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/plugin/message_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ func TestSimpleValueMessage(t *testing.T) {
2424

2525
func TestJSONValuesMessage(t *testing.T) {
2626
timestamp := time.Unix(1, 0)
27-
values := []interface{}{
27+
values := []float64{
2828
-0.5182926829268293,
2929
-0.3582317073170732,
3030
0.1753048780487805,
3131
0.20599365234375,
3232
-0.050048828125,
3333
1.03582763671875,
3434
}
35-
msg := fmt.Sprintf(`{"ax": %v, "ay": %v, "az": %v, "gx": %v, "gy": %v, "gz": %v}`, values...)
35+
msg := fmt.Sprintf(`{"ax": %v, "ay": %v, "az": %v, "gx": %v, "gy": %v, "gz": %v}`,
36+
values[0], values[1], values[2], values[3], values[4], values[5])
3637
frame := plugin.ToFrame("test/data", []mqtt.Message{
3738
{
3839
Timestamp: timestamp,

0 commit comments

Comments
 (0)