| "fmt" | "fmt" | ||||
| "log" | "log" | ||||
| "testing" | "testing" | ||||
| "time" | |||||
| "github.com/stretchr/testify/assert" | "github.com/stretchr/testify/assert" | ||||
| "github.com/udhos/equalfile" | "github.com/udhos/equalfile" | ||||
| assert.NotEqual(t, mediaID, "", "MediaID should not be Empty") | assert.NotEqual(t, mediaID, "", "MediaID should not be Empty") | ||||
| //wait for a while for the video to be procssed | //wait for a while for the video to be procssed | ||||
| //time.Sleep(3000 * time.Millisecond) | |||||
| time.Sleep(3 * time.Second) | |||||
| //download the media back using the media id | //download the media back using the media id | ||||
| filename, e := saveMedia2File(mediaID) // this is a json with video link, we should download it and compare it. | filename, e := saveMedia2File(mediaID) // this is a json with video link, we should download it and compare it. |