Skip to content

Commit

Permalink
test: skip convert tests on CI mac runners
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Dec 21, 2023
1 parent 01ede4b commit c896f7d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/server/large_requests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ import (
"net/http"
"os"
"path/filepath"
"runtime"
"testing"
"time"

"github.com/stretchr/testify/require"
)

var (
// Our Mac CI runners are having issues running the 10k convert test
skipConvertTest bool = os.Getenv("GITHUB_ACTIONS") != "" && runtime.GOOS == "darwin"
)

func TestServer__LargeRequests(t *testing.T) {
if testing.Short() {
t.Skip("-short flag provided")
}

timeout, _ := time.ParseDuration("30s")
handler, _ := ConfigureHandlers()

Expand Down Expand Up @@ -74,6 +84,10 @@ func TestServer__LargeRequests(t *testing.T) {
})

t.Run("convert "+path, func(t *testing.T) {
if skipConvertTest {
t.Skip("CI runners aren't able to pass this currently")
}

var body bytes.Buffer
w := multipart.NewWriter(&body)
part, err := w.CreateFormFile("file", filepath.Base(path))
Expand Down

0 comments on commit c896f7d

Please sign in to comment.