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)