From 4890a62e100f6d794f672bfab14fff04499252f2 Mon Sep 17 00:00:00 2001 From: George Blue Date: Thu, 9 Feb 2023 15:44:29 +0000 Subject: [PATCH] test: update matrix for Go 1.20 (#1130) * test: update matrix for Go 1.20 * test: update coverage expecation for Go 1.20 --- .github/workflows/test.yml | 4 ++-- integration/profiling_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7148fcab3..c25208a64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,14 +12,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: '1.18' + go-version: '1.19' - uses: actions/checkout@v3 - run: go mod tidy && git diff --exit-code go.mod go.sum build: runs-on: ubuntu-latest strategy: matrix: - version: [ '1.18', '1.19' ] + version: [ '1.19', '1.20' ] name: Go ${{ matrix.version }} steps: - uses: actions/setup-go@v3 diff --git a/integration/profiling_test.go b/integration/profiling_test.go index eb3ff4390..25040fc5c 100644 --- a/integration/profiling_test.go +++ b/integration/profiling_test.go @@ -105,13 +105,13 @@ var _ = Describe("Profiling Specs", func() { coverPkgFlag := fmt.Sprintf("-coverpkg=%s,%s", fm.PackageNameFor("coverage"), fm.PackageNameFor("coverage/external_coverage")) seriesSession := startGinkgo(fm.PathTo("coverage"), coverPkgFlag) Eventually(seriesSession).Should(gexec.Exit(0)) - Ω(seriesSession.Out).Should(gbytes.Say("coverage: 71.4% of statements in")) + Ω(seriesSession.Out).Should(gbytes.Say(`coverage: (80\.0|71\.4)% of statements in`)) seriesCoverage := processCoverageProfile(fm.PathTo("coverage", "coverprofile.out")) fm.RemoveFile("coverage", "coverprofile.out") parallelSession := startGinkgo(fm.PathTo("coverage"), "--no-color", "--procs=2", coverPkgFlag) Eventually(parallelSession).Should(gexec.Exit(0)) - Ω(parallelSession.Out).Should(gbytes.Say(`coverage: 71\.4% of statements`)) + Ω(parallelSession.Out).Should(gbytes.Say(`coverage: (80\.0|71\.4)% of statements`)) parallelCoverage := processCoverageProfile(fm.PathTo("coverage", "coverprofile.out")) Ω(parallelCoverage).Should(Equal(seriesCoverage))