Merge pull request #4742 from MichaelEischer/consistent-rtest-import

Use consistent alias for interal/test package
This commit is contained in:
Michael Eischer
2024-04-03 21:47:32 +02:00
committed by GitHub
9 changed files with 103 additions and 96 deletions

View File

@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"io"
mrand "math/rand"
"math/rand"
"os"
"path/filepath"
"syscall"
@@ -116,7 +116,7 @@ func TestRestore(t *testing.T) {
for i := 0; i < 10; i++ {
p := filepath.Join(env.testdata, fmt.Sprintf("foo/bar/testfile%v", i))
rtest.OK(t, os.MkdirAll(filepath.Dir(p), 0755))
rtest.OK(t, appendRandomData(p, uint(mrand.Intn(2<<21))))
rtest.OK(t, appendRandomData(p, uint(rand.Intn(2<<21))))
}
opts := BackupOptions{}