bump golang version to 1.19
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -10,7 +10,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.18"
|
GO_VERSION: "1.19"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,6 +1,6 @@
|
|||||||
module github.com/virtual-kubelet/virtual-kubelet
|
module github.com/virtual-kubelet/virtual-kubelet
|
||||||
|
|
||||||
go 1.17
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ package api_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
@@ -125,7 +125,7 @@ func TestHandlePodMetricsResource(t *testing.T) {
|
|||||||
assert.Equal(t, tc.expectedStatusCode, rr.Code)
|
assert.Equal(t, tc.expectedStatusCode, rr.Code)
|
||||||
|
|
||||||
if tc.expectedError != nil {
|
if tc.expectedError != nil {
|
||||||
bodyBytes, err := ioutil.ReadAll(rr.Body)
|
bodyBytes, err := io.ReadAll(rr.Body)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
assert.Contains(t, string(bodyBytes), tc.expectedError.Error())
|
assert.Contains(t, string(bodyBytes), tc.expectedError.Error())
|
||||||
} else if tc.expectedStatusCode == http.StatusOK {
|
} else if tc.expectedStatusCode == http.StatusOK {
|
||||||
|
|||||||
Reference in New Issue
Block a user