device: use fatal instead of skip in tests

This commit is contained in:
Scott 2020-01-31 14:02:45 +10:30
parent 9ddd4be089
commit c682f49071
5 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@ func TestIsRunning(t *testing.T) {
err = d.Start() err = d.Start()
if err != nil { if err != nil {
t.Skipf("could not start device %w", err) t.Fatalf("could not start device %w", err)
} }
time.Sleep(dur) time.Sleep(dur)

View File

@ -46,7 +46,7 @@ func TestIsRunning(t *testing.T) {
err = d.Start() err = d.Start()
if err != nil { if err != nil {
t.Skipf("could not start device %w", err) t.Fatalf("could not start device %w", err)
} }
time.Sleep(dur) time.Sleep(dur)

View File

@ -52,7 +52,7 @@ func TestIsRunning(t *testing.T) {
err = d.Start() err = d.Start()
if err != nil { if err != nil {
t.Skipf("could not start device %w", err) t.Fatalf("could not start device %w", err)
} }
time.Sleep(dur) time.Sleep(dur)

View File

@ -49,7 +49,7 @@ func TestIsRunning(t *testing.T) {
err = d.Start() err = d.Start()
if err != nil { if err != nil {
t.Skipf("could not start device %w", err) t.Fatalf("could not start device %w", err)
} }
time.Sleep(dur) time.Sleep(dur)

View File

@ -49,7 +49,7 @@ func TestIsRunning(t *testing.T) {
err = d.Start() err = d.Start()
if err != nil { if err != nil {
t.Skipf("could not start device %w", err) t.Fatalf("could not start device %w", err)
} }
time.Sleep(dur) time.Sleep(dur)