Use either test or rtest to refer to internal test helpers

A single test file should not use both names.
This commit is contained in:
Michael Eischer
2023-05-18 17:44:56 +02:00
parent bfc9c6c971
commit e01baeabba
4 changed files with 10 additions and 14 deletions

View File

@@ -14,7 +14,6 @@ import (
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/test"
rtest "github.com/restic/restic/internal/test"
"golang.org/x/sync/errgroup"
)
@@ -271,7 +270,7 @@ func TestFileSaveConcurrent(t *testing.T) {
func TestFileSaveAfterDamage(t *testing.T) {
c := TestNewCache(t)
rtest.OK(t, fs.RemoveAll(c.path))
test.OK(t, fs.RemoveAll(c.path))
// save a few bytes of data in the cache
data := test.Random(123456789, 42)