Merge pull request #3266 from liubin/fix/3265-update-golang-to-1.16-and-remove-ioutil

runtime: update golang to 1.16 and remove ioutil package
This commit is contained in:
Jakob Naucke
2021-12-15 10:09:23 +01:00
committed by GitHub
78 changed files with 263 additions and 320 deletions

View File

@@ -286,8 +286,8 @@ func TestSomething(t *testing.T) {
assert := assert.New(t)
// Create a temporary directory
tmpdir, err := ioutil.TempDir("", "")
assert.NoError(err)
tmpdir, err := os.MkdirTemp("", "")
assert.NoError(err)
// Delete it at the end of the test
defer os.RemoveAll(tmpdir)