Skip to content

Commit 4890a62

Browse files
authoredFeb 9, 2023
test: update matrix for Go 1.20 (#1130)
* test: update matrix for Go 1.20 * test: update coverage expecation for Go 1.20
1 parent a774638 commit 4890a62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/setup-go@v3
1414
with:
15-
go-version: '1.18'
15+
go-version: '1.19'
1616
- uses: actions/checkout@v3
1717
- run: go mod tidy && git diff --exit-code go.mod go.sum
1818
build:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
version: [ '1.18', '1.19' ]
22+
version: [ '1.19', '1.20' ]
2323
name: Go ${{ matrix.version }}
2424
steps:
2525
- uses: actions/setup-go@v3

‎integration/profiling_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ var _ = Describe("Profiling Specs", func() {
105105
coverPkgFlag := fmt.Sprintf("-coverpkg=%s,%s", fm.PackageNameFor("coverage"), fm.PackageNameFor("coverage/external_coverage"))
106106
seriesSession := startGinkgo(fm.PathTo("coverage"), coverPkgFlag)
107107
Eventually(seriesSession).Should(gexec.Exit(0))
108-
Ω(seriesSession.Out).Should(gbytes.Say("coverage: 71.4% of statements in"))
108+
Ω(seriesSession.Out).Should(gbytes.Say(`coverage: (80\.0|71\.4)% of statements in`))
109109
seriesCoverage := processCoverageProfile(fm.PathTo("coverage", "coverprofile.out"))
110110
fm.RemoveFile("coverage", "coverprofile.out")
111111

112112
parallelSession := startGinkgo(fm.PathTo("coverage"), "--no-color", "--procs=2", coverPkgFlag)
113113
Eventually(parallelSession).Should(gexec.Exit(0))
114-
Ω(parallelSession.Out).Should(gbytes.Say(`coverage: 71\.4% of statements`))
114+
Ω(parallelSession.Out).Should(gbytes.Say(`coverage: (80\.0|71\.4)% of statements`))
115115
parallelCoverage := processCoverageProfile(fm.PathTo("coverage", "coverprofile.out"))
116116

117117
Ω(parallelCoverage).Should(Equal(seriesCoverage))

0 commit comments

Comments
 (0)
Please sign in to comment.