Skip to content

Commit

Permalink
ioutil -> os
Browse files Browse the repository at this point in the history
  • Loading branch information
justheuristic authored Nov 14, 2023
1 parent 5734b7c commit ae32d26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"crypto/rand"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime"
Expand All @@ -27,7 +26,7 @@ import (

func createTempDir(t *testing.T) (string, string, func()) {
root := os.TempDir()
dir, err := ioutil.TempDir(root, "p2pd")
dir, err := os.TempDir(root, "p2pd")

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / ubuntu, go 1.21.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / ubuntu, go 1.21.x

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / ubuntu, go 1.20.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / ubuntu, go 1.20.x

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / macos, go 1.20.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / macos, go 1.20.x

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / go_checks

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / go_checks

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / go_checks

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / windows, go 1.20.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / windows, go 1.20.x

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / macos, go 1.21.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / macos, go 1.21.x

too many arguments in call to os.TempDir

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / windows, go 1.21.x

assignment mismatch: 2 variables but os.TempDir returns 1 value

Check failure on line 29 in test/utils.go

View workflow job for this annotation

GitHub Actions / windows, go 1.21.x

too many arguments in call to os.TempDir
if err != nil {
t.Fatalf("creating temp dir: %s", err)
}
Expand Down

0 comments on commit ae32d26

Please sign in to comment.