aboutsummaryrefslogtreecommitdiff
path: root/pkg/types
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/types')
-rw-r--r--pkg/types/leaf_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/types/leaf_test.go b/pkg/types/leaf_test.go
index 0ae6431..00e8256 100644
--- a/pkg/types/leaf_test.go
+++ b/pkg/types/leaf_test.go
@@ -140,7 +140,7 @@ func TestLeafFromASCII(t *testing.T) {
},
{
desc: "invalid: not a tree leaf (too many key-value pairs)",
- serialized: bytes.NewBuffer(append(validLeafBytes(t)[:], []byte("key=value\n")...)),
+ serialized: bytes.NewBuffer(append([]byte(validLeafASCII(t)), []byte("key=value\n")...)),
wantErr: true,
},
{
@@ -177,7 +177,7 @@ func TestLeavesFromASCII(t *testing.T) {
},
{
desc: "invalid: not a list of tree leaves (too many key-value pairs)",
- serialized: bytes.NewBuffer(append(validLeafBytes(t)[:], []byte("key=value\n")...)),
+ serialized: bytes.NewBuffer(append([]byte(validLeafASCII(t)), []byte("key=value\n")...)),
wantErr: true,
},
{