Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Fixes to api_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Sep 17, 2017
1 parent d069368 commit 42207c6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ func TestApi(t *testing.T) {
t.Errorf("GetVideoId(%d): expected %q, actual %q", i, table.id, ID)
}

video, err := APIGetVideoStream(ID, rawVideo)
if err != nil {
t.Errorf("APIGetVideoStream(%d): expected %v, actual %v", i, nil, err)
}

file := path + rawVideo.Title + rawVideo.Author
err = APIConvertVideo(file, 123, ID, video)
if err != nil {
t.Errorf("APIConvertVideo(%d): expected %v, actual %v", i, nil, err)
if ID != "" {
video, err := APIGetVideoStream(ID, rawVideo)
if err != nil {
t.Errorf("APIGetVideoStream(%d): expected %v, actual %v", i, nil, err)
}

file := path + rawVideo.Title + rawVideo.Author
err = APIConvertVideo(file, 123, ID, video)
if err != nil {
t.Errorf("APIConvertVideo(%d): expected %v, actual %v", i, nil, err)
}
}
}
}

0 comments on commit 42207c6

Please sign in to comment.