Merge pull request #4199 from fuweid/update-go-version-zuul

.zuul: update go version to 1.13.10
This commit is contained in:
Phil Estes 2020-04-23 14:35:10 -04:00 committed by GitHub
commit 5d4a9bae9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 17 deletions

View File

@ -2,6 +2,7 @@
become: yes
roles:
- role: config-golang
go_version: '1.13.10'
arch: arm64
tasks:
- name: Build containerd
@ -12,6 +13,7 @@
apt-get update
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
go version
make | tee $LOGS_PATH/make.txt
make test | tee $LOGS_PATH/make_test.txt

View File

@ -24,11 +24,14 @@ import (
)
func TestRuntimeWithEmptyMaxEnvProcs(t *testing.T) {
var oldGoMaxProcs = runtime.GOMAXPROCS(0)
defer runtime.GOMAXPROCS(oldGoMaxProcs)
os.Setenv("GOMAXPROCS", "")
setRuntime()
var oldGoMaxProcs = runtime.GOMAXPROCS(0)
if oldGoMaxProcs != 2 {
var currentGoMaxProcs = runtime.GOMAXPROCS(0)
if currentGoMaxProcs != 2 {
t.Fatal("the max number of procs should be 2")
}
}