From 6367b7449efefe22ba6391f03d2d7a9282241068 Mon Sep 17 00:00:00 2001 From: Patrick Devine Date: Mon, 8 Jul 2024 17:23:05 -0700 Subject: [PATCH] try feeding the linter again --- convert/convert_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/convert/convert_test.go b/convert/convert_test.go index 619cb10cd..ebdaf9967 100644 --- a/convert/convert_test.go +++ b/convert/convert_test.go @@ -172,12 +172,12 @@ func TestConvertNPZ(t *testing.T) { t.Fatal(err) } if ggml == nil { - t.Errorf("ggla didn't convert to ggml correctly") + t.Fatal(fmt.Errorf("ggla didn't convert to ggml correctly")) } kv := ggml.KV() if kv == nil { - t.Errorf("no lora KVs were set") + t.Fatal(fmt.Errorf("no lora KVs were set")) } r, ok := kv["r"] @@ -191,6 +191,9 @@ func TestConvertNPZ(t *testing.T) { } gts := ggml.Tensors() + if >s == nil { + t.Fatal(fmt.Errorf("no tensors were found")) + } if len(ts) != len(gts.Items) { t.Errorf("got: %d want: %d tensors in ggla", len(gts.Items), len(ts)) }