multi: replace ioutil.TempDir
This commit is contained in:
1 parent
caf2419ff6
commit
df4ddcc573
3 files changed
+3
-6
No files matched your search
+1
-2
@@ -7,7 +7,6 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -947,7 +946,7 @@ var _ ChannelLink = (*mockChannelLink)(nil)
|
||||
func newDB() (*channeldb.DB, func(), error) {
|
||||
// First, create a temporary directory to be used for the duration of
|
||||
// this test.
|
||||
tempDirName, err := ioutil.TempDir("", "channeldb")
|
||||
tempDirName, err := os.MkdirTemp("", "channeldb")
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user