mirror of
https://github.com/restic/restic.git
synced 2025-12-03 20:11:52 +00:00
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:
3
internal/cache/file_test.go
vendored
3
internal/cache/file_test.go
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user