Skip to content

Commit

Permalink
Bugfix:
Browse files Browse the repository at this point in the history
Fix time compare method in test case.
  • Loading branch information
leikao committed Dec 31, 2018
1 parent 55ed946 commit 04bd457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader_test.go
Expand Up @@ -566,7 +566,7 @@ func TestDecodeMediaPlaylistWithProgramDateTime(t *testing.T) {

// The ProgramDateTime of the 1st segment should be: 2018-12-31T09:47:22+08:00
st, _ := time.Parse(time.RFC3339, "2018-12-31T09:47:22+08:00")
if pp.Segments[0].ProgramDateTime != st {
if !pp.Segments[0].ProgramDateTime.Equal(st) {
t.Errorf("The program date time of the 1st segment should be: %v, actual value: %v",
st, pp.Segments[0].ProgramDateTime)
}
Expand Down

0 comments on commit 04bd457

Please sign in to comment.