Commit e0765db3 authored by Esad Akar's avatar Esad Akar Committed by GitHub

manifest: TestMarshal fix (#1666)

parent ac06c592
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"bytes" "bytes"
"context" "context"
"encoding/hex" "encoding/hex"
"math/rand"
mrand "math/rand" mrand "math/rand"
"reflect" "reflect"
"testing" "testing"
...@@ -146,6 +147,7 @@ func TestUnmarshal02(t *testing.T) { ...@@ -146,6 +147,7 @@ func TestUnmarshal02(t *testing.T) {
} }
func TestMarshal(t *testing.T) { func TestMarshal(t *testing.T) {
rand.Seed(1)
ctx := context.Background() ctx := context.Background()
n := New() n := New()
defer func(r func(*fork) []byte) { refBytes = r }(refBytes) defer func(r func(*fork) []byte) { refBytes = r }(refBytes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment