2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-10 15:21:03 +00:00

Make TestCreateSnapshot less verbose

This commit is contained in:
Alexander Neumann 2016-07-31 12:09:26 +02:00
parent b55ac2afd6
commit 6c2334f505

View File

@ -52,11 +52,8 @@ const (
// 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 {
t.Logf("create fake tree with seed %d, depth %d", seed, depth)
rnd := rand.NewSource(seed)
numNodes := int(rnd.Int63() % maxNodes)
t.Logf("create %v nodes", numNodes)
var tree Tree
for i := 0; i < numNodes; i++ {