From d8ee02e6075166284dafda9c001064203b941fa6 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 18 Dec 2025 09:05:58 +0100 Subject: [PATCH] chore(tests): simplify tests and run intensive ones only once Signed-off-by: Ettore Di Giacinto --- core/http/app_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/http/app_test.go b/core/http/app_test.go index 5556cb23b..a4073ef13 100644 --- a/core/http/app_test.go +++ b/core/http/app_test.go @@ -956,6 +956,9 @@ parameters: Expect(len(models.Models)).To(Equal(7)) // If "config.yaml" should be included, this should be 8? }) It("can generate completions via ggml", func() { + if runtime.GOOS != "linux" { + Skip("test supported only on linux") + } resp, err := client.CreateCompletion(context.TODO(), openai.CompletionRequest{Model: "testmodel.ggml", Prompt: testPrompt}) Expect(err).ToNot(HaveOccurred()) Expect(len(resp.Choices)).To(Equal(1)) @@ -963,6 +966,9 @@ parameters: }) It("can generate chat completions via ggml", func() { + if runtime.GOOS != "linux" { + Skip("test supported only on linux") + } resp, err := client.CreateChatCompletion(context.TODO(), openai.ChatCompletionRequest{Model: "testmodel.ggml", Messages: []openai.ChatCompletionMessage{openai.ChatCompletionMessage{Role: "user", Content: testPrompt}}}) Expect(err).ToNot(HaveOccurred()) Expect(len(resp.Choices)).To(Equal(1))