From bb032778c6b680211b6a1ecea2818743f8fa725f Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 7 Feb 2019 10:48:25 +1030 Subject: [PATCH] stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests --- stream/mts/metaEncode_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stream/mts/metaEncode_test.go b/stream/mts/metaEncode_test.go index d372f20a..c3c23131 100644 --- a/stream/mts/metaEncode_test.go +++ b/stream/mts/metaEncode_test.go @@ -31,6 +31,7 @@ import ( "bytes" "testing" + "bitbucket.org/ausocean/av/stream/mts/meta" "bitbucket.org/ausocean/av/stream/mts/psi" ) @@ -42,6 +43,7 @@ const ( const fps = 25 func TestMetaEncode1(t *testing.T) { + Meta = meta.New() var b []byte buf := bytes.NewBuffer(b) e := NewEncoder(buf, fps) @@ -67,6 +69,7 @@ func TestMetaEncode1(t *testing.T) { } func TestMetaEncode2(t *testing.T) { + Meta = meta.New() var b []byte buf := bytes.NewBuffer(b) e := NewEncoder(buf, fps)