From e5551fbe9ee6c92f52f07ce0223cbd57485c97f5 Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:10:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/a73dc2ea8179037b5e798694dbf3a6126a6c496d --- .github/workflows/go.yml | 2 +- go.mod | 2 +- lib/sanityref/sanityref_test.go | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 02dc024..478154d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-go@v5.0.2 with: - go-version: '^1.22.0' + go-version: '^1.23.0' - run: go build -v ./... diff --git a/go.mod b/go.mod index ae5a360..f942ee4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/wearemojo/mojo-public-go -go 1.22.0 +go 1.23.0 require ( cloud.google.com/go v0.115.1 diff --git a/lib/sanityref/sanityref_test.go b/lib/sanityref/sanityref_test.go index ce93bb0..721110d 100644 --- a/lib/sanityref/sanityref_test.go +++ b/lib/sanityref/sanityref_test.go @@ -201,7 +201,9 @@ func TestResolveReferencesMissingImages(t *testing.T) { }, }) - is.Equal(missingDocumentIDs.ToSlice(), []string{"image-id2", "image-id4"}) + missingDocumentIDsSlice := missingDocumentIDs.ToSlice() + slices.Sort(missingDocumentIDsSlice) + is.Equal(missingDocumentIDsSlice, []string{"image-id2", "image-id4"}) // ensures no infinite recursion _, err = json.Marshal(documentMap)