Skip to content

Commit

Permalink
Skip test on darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Jun 21, 2024
1 parent 28275dc commit 8952511
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/oci/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package oci_test

import (
"os"
"runtime"

. "github.com/go-skynet/LocalAI/pkg/oci" // Update with your module path
. "github.com/onsi/ginkgo/v2"
Expand All @@ -12,7 +13,9 @@ var _ = Describe("OCI", func() {

Context("when template is loaded successfully", func() {
It("should evaluate the template correctly", func() {

if runtime.GOOS == "darwin" {
Skip("Skipping test on darwin")
}
imageName := "alpine"
img, err := GetImage(imageName, "", nil, nil)
Expect(err).NotTo(HaveOccurred())
Expand All @@ -31,5 +34,4 @@ var _ = Describe("OCI", func() {
Expect(err).NotTo(HaveOccurred())
})
})

})

0 comments on commit 8952511

Please sign in to comment.