From bb77090f394da0c9d9b5e6530176a4002f4614b4 Mon Sep 17 00:00:00 2001 From: riccardopinosio Date: Thu, 21 Mar 2024 11:40:18 +0100 Subject: [PATCH] fix --- cmd/main_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/main_test.go b/cmd/main_test.go index 2d10772..2493b88 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -19,13 +19,14 @@ import ( var textClassificationData []byte //go:embed testData/tokenClassification.jsonl -var tokenClassificationData []byte +// var tokenClassificationData []byte func TestMain(m *testing.M) { // model setup if ok, err := util.FileSystem.Exists(context.Background(), "/build/models"); err == nil { - fmt.Println("HERE") + fmt.Println("HERE NO ERROR") if !ok { + fmt.Println("HERE MODEL FOLDER NOT THERE") session, err := hugot.NewSession() if err != nil { panic(err) @@ -91,7 +92,7 @@ func TestTextClassificationCli(t *testing.T) { // write the test data and test recursive reads and processing from folder testDataDir := path.Join(os.TempDir(), "hugoTestData") recurseDir := path.Join(testDataDir, "cliRecurseTest") - err := os.MkdirAll(recurseDir, os.ModePerm) + err = os.MkdirAll(recurseDir, os.ModePerm) check(t, err) err = os.WriteFile(path.Join(testDataDir, "test-0.jsonl"), textClassificationData, os.ModePerm) check(t, err)