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:
@ -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())
|
||||
})
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user