container/mts/encoder_test.go: simplified some code and improved commenting

This commit is contained in:
Saxon 2019-05-08 00:03:44 +09:30
parent a0e2360f2b
commit 1e7d3508e3
1 changed files with 2 additions and 4 deletions

View File

@ -97,11 +97,9 @@ func TestEncodeVideo(t *testing.T) {
},
}
// Create the dst and write the test data to encoder.
dst := &destination{}
e := NewEncoder(nopCloser{dst}, 25, Video)
// Write data.
_, err := e.Write(data)
_, err := NewEncoder(nopCloser{dst}, 25, Video).Write(data)
if err != nil {
t.Fatalf("could not write data to encoder, failed with err: %v\n", err)
}