mirror of https://bitbucket.org/ausocean/av.git
Skip senders tests in CI - Resolves #413
Using a env var in CircleCI, these tests will be skipped when commits are pushed to bitbucket. NOTE: this is a temporary patch, and these tests should be properly reviewed. Approved-by: Trek Hopton
This commit is contained in:
parent
14482e8945
commit
5761f81315
|
@ -26,10 +26,12 @@ LICENSE
|
|||
You should have received a copy of the GNU General Public License
|
||||
in gpl.txt. If not, see http://www.gnu.org/licenses.
|
||||
*/
|
||||
|
||||
package revid
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
@ -100,6 +102,11 @@ func (ts *destination) Close() error { return nil }
|
|||
// TestSegment ensures that the mtsSender correctly segments data into clips
|
||||
// based on positioning of PSI in the mtsEncoder's output stream.
|
||||
func TestMTSSenderSegment(t *testing.T) {
|
||||
// Skip this tests in Circle CI.
|
||||
// TODO: Rewrite tests/determine testing failure.
|
||||
if _, CI := os.LookupEnv("CI"); CI {
|
||||
t.Skip("Skipped faulty test in CI")
|
||||
}
|
||||
mts.Meta = meta.New()
|
||||
|
||||
// Create ringBuffer, sender, sender and the MPEGTS encoder.
|
||||
|
@ -181,6 +188,11 @@ func TestMTSSenderSegment(t *testing.T) {
|
|||
// TestMtsSenderFailedSend checks that a failed send is correctly handled by
|
||||
// the mtsSender. The mtsSender should try to send the same clip again.
|
||||
func TestMtsSenderFailedSend(t *testing.T) {
|
||||
// Skip this tests in Circle CI.
|
||||
// TODO: Rewrite tests/determine testing failure.
|
||||
if _, CI := os.LookupEnv("CI"); CI {
|
||||
t.Skip("Skipped faulty test in CI")
|
||||
}
|
||||
mts.Meta = meta.New()
|
||||
|
||||
// Create destination, the mtsSender and the mtsEncoder
|
||||
|
@ -267,6 +279,11 @@ func TestMtsSenderFailedSend(t *testing.T) {
|
|||
// the mtsSender's ringBuffer. It is expected that the next clip seen has the
|
||||
// disconinuity indicator applied.
|
||||
func TestMtsSenderDiscontinuity(t *testing.T) {
|
||||
// Skip this tests in Circle CI.
|
||||
// TODO: Rewrite tests/determine testing failure.
|
||||
if _, CI := os.LookupEnv("CI"); CI {
|
||||
t.Skip("Skipped faulty test in CI")
|
||||
}
|
||||
mts.Meta = meta.New()
|
||||
|
||||
// Create destination, the mtsSender and the mtsEncoder.
|
||||
|
|
Loading…
Reference in New Issue