stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests

This commit is contained in:
saxon 2019-02-07 10:48:25 +10:30
parent 66a2325dcb
commit bb032778c6
1 changed files with 3 additions and 0 deletions

View File

@ -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)