summaryrefslogtreecommitdiffstats
path: root/core/data_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/data_test.go')
-rw-r--r--core/data_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/data_test.go b/core/data_test.go
index 1275ef4..af986cc 100644
--- a/core/data_test.go
+++ b/core/data_test.go
@@ -1,6 +1,7 @@
package core
import (
+ "bytes"
"testing"
"time"
@@ -24,7 +25,7 @@ func TestEncoder(t *testing.T) {
t.Error(err)
}
- out, err := Decode(data)
+ out, err := Decode(bytes.NewBuffer(data))
if err != nil {
t.Error(err)
}