From c682f490711cccff28d8a65c61ae33358bc59e9a Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 31 Jan 2020 14:02:45 +1030 Subject: [PATCH] device: use fatal instead of skip in tests --- device/alsa/alsa_test.go | 2 +- device/file/file_test.go | 2 +- device/geovision/geovision_test.go | 2 +- device/raspivid/raspivid_test.go | 2 +- device/webcam/webcam_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/device/alsa/alsa_test.go b/device/alsa/alsa_test.go index b612ec96..aeeb6ac9 100644 --- a/device/alsa/alsa_test.go +++ b/device/alsa/alsa_test.go @@ -132,7 +132,7 @@ func TestIsRunning(t *testing.T) { err = d.Start() if err != nil { - t.Skipf("could not start device %w", err) + t.Fatalf("could not start device %w", err) } time.Sleep(dur) diff --git a/device/file/file_test.go b/device/file/file_test.go index 0a960f11..6bf547f4 100644 --- a/device/file/file_test.go +++ b/device/file/file_test.go @@ -46,7 +46,7 @@ func TestIsRunning(t *testing.T) { err = d.Start() if err != nil { - t.Skipf("could not start device %w", err) + t.Fatalf("could not start device %w", err) } time.Sleep(dur) diff --git a/device/geovision/geovision_test.go b/device/geovision/geovision_test.go index 191c9e5e..784313e3 100644 --- a/device/geovision/geovision_test.go +++ b/device/geovision/geovision_test.go @@ -52,7 +52,7 @@ func TestIsRunning(t *testing.T) { err = d.Start() if err != nil { - t.Skipf("could not start device %w", err) + t.Fatalf("could not start device %w", err) } time.Sleep(dur) diff --git a/device/raspivid/raspivid_test.go b/device/raspivid/raspivid_test.go index bdf5df84..a1822317 100644 --- a/device/raspivid/raspivid_test.go +++ b/device/raspivid/raspivid_test.go @@ -49,7 +49,7 @@ func TestIsRunning(t *testing.T) { err = d.Start() if err != nil { - t.Skipf("could not start device %w", err) + t.Fatalf("could not start device %w", err) } time.Sleep(dur) diff --git a/device/webcam/webcam_test.go b/device/webcam/webcam_test.go index 608f78ee..45f8e205 100644 --- a/device/webcam/webcam_test.go +++ b/device/webcam/webcam_test.go @@ -49,7 +49,7 @@ func TestIsRunning(t *testing.T) { err = d.Start() if err != nil { - t.Skipf("could not start device %w", err) + t.Fatalf("could not start device %w", err) } time.Sleep(dur)