mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
multi: repleace ioutil.ReadFile
This commit is contained in:
@ -3,7 +3,6 @@ package chanbackup
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@ -27,7 +26,7 @@ func assertBackupMatches(t *testing.T, filePath string,
|
||||
|
||||
t.Helper()
|
||||
|
||||
packedBackup, err := ioutil.ReadFile(filePath)
|
||||
packedBackup, err := os.ReadFile(filePath)
|
||||
require.NoError(t, err, "unable to test file")
|
||||
|
||||
if !bytes.Equal(packedBackup, currentBackup) {
|
||||
|
Reference in New Issue
Block a user