Merge pull request #888 from jingyuanliang/go120

Bump to golang 1.20 to pick up go1.19.6 / go1.20.1 CVE fixes
This commit is contained in:
Casey Callendrello
2023-04-24 17:37:28 +02:00
committed by GitHub
6 changed files with 4 additions and 10 deletions

View File

@ -17,7 +17,6 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net"
"os"
"strings"
@ -179,7 +178,7 @@ var _ = Describe("Add, check, remove tap plugin", func() {
targetNS, err = testutils.NewNS()
Expect(err).NotTo(HaveOccurred())
dataDir, err = ioutil.TempDir("", "dummy")
dataDir, err = os.MkdirTemp("", "dummy")
Expect(err).NotTo(HaveOccurred())
})

View File

@ -15,7 +15,6 @@
package main
import (
"math/rand"
"net"
"os/exec"
"path/filepath"
@ -32,8 +31,6 @@ import (
)
func TestPortmap(t *testing.T) {
rand.Seed(GinkgoRandomSeed())
RegisterFailHandler(Fail)
RunSpecs(t, "plugins/meta/portmap")
}