mirror of https://bitbucket.org/ausocean/av.git
stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests
This commit is contained in:
parent
66a2325dcb
commit
bb032778c6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue