From 98d5c2a83022ce230b0d78e3de1b3717a8f9b7c4 Mon Sep 17 00:00:00 2001 From: mudler Date: Fri, 12 May 2023 13:32:30 +0200 Subject: [PATCH] enable test only on Linux --- api/api_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api_test.go b/api/api_test.go index 9fc14eb..e443311 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -4,6 +4,7 @@ import ( "context" "os" "path/filepath" + "runtime" . "github.com/go-skynet/LocalAI/api" "github.com/go-skynet/LocalAI/pkg/model" @@ -83,6 +84,9 @@ var _ = Describe("API test", func() { Expect(err.Error()).To(ContainSubstring("error, status code: 500, message: could not load model - all backends returned error: 12 errors occurred:")) }) It("transcribes audio", func() { + if runtime.GOOS != "linux" { + Skip("test supported only on linux") + } resp, err := client.CreateTranscription( context.Background(), openai.AudioRequest{