mirror of
https://github.com/octoleo/restic.git
synced 2024-11-14 01:04:05 +00:00
Make TestCreateSnapshot less verbose
This commit is contained in:
parent
b55ac2afd6
commit
6c2334f505
@ -52,11 +52,8 @@ const (
|
|||||||
|
|
||||||
// saveTree saves a tree of fake files in the repo and returns the ID.
|
// saveTree saves a tree of fake files in the repo and returns the ID.
|
||||||
func saveTree(t testing.TB, repo *repository.Repository, seed int64, depth int) backend.ID {
|
func saveTree(t testing.TB, repo *repository.Repository, seed int64, depth int) backend.ID {
|
||||||
t.Logf("create fake tree with seed %d, depth %d", seed, depth)
|
|
||||||
|
|
||||||
rnd := rand.NewSource(seed)
|
rnd := rand.NewSource(seed)
|
||||||
numNodes := int(rnd.Int63() % maxNodes)
|
numNodes := int(rnd.Int63() % maxNodes)
|
||||||
t.Logf("create %v nodes", numNodes)
|
|
||||||
|
|
||||||
var tree Tree
|
var tree Tree
|
||||||
for i := 0; i < numNodes; i++ {
|
for i := 0; i < numNodes; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user