From 4abefc9104a795df8a027c4ed3da232fb38ed222 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Thu, 29 Aug 2024 08:08:47 -0400 Subject: [PATCH] clean up test --- allwinner/h6_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/allwinner/h6_test.go b/allwinner/h6_test.go index 7608bd1..41b027d 100644 --- a/allwinner/h6_test.go +++ b/allwinner/h6_test.go @@ -17,13 +17,13 @@ func TestGetH6SerializedPinSpecs(t *testing.T) { } func TestGetH6SerializedPinSpecs_areRegistered(t *testing.T) { - if pins, err := getH6SerializedPinSpecs(); err != nil { - t.Error(err) - } else { - for _, pinSpec := range pins { - if _, ok := cpupins[pinSpec.Name]; !ok { - t.Error(pinSpec.Name) - } + pins, err := getH6SerializedPinSpecs() + if err != nil { + t.Fatal(err) + } + for _, pinSpec := range pins { + if _, ok := cpupins[pinSpec.Name]; !ok { + t.Error(pinSpec.Name) } } }