aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-02 15:41:08 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-02 15:41:08 +0200
commit2a048d5d8b2b25326685ba53fc390781ba96deed (patch)
treefcba14fa2f993cb67226c3eeebca135e5d316c0a /repo_test.go
parent9387c79a1862e7572ffc59919c05cf1dc9aeeae5 (diff)
downloaddna-backup-2a048d5d8b2b25326685ba53fc390781ba96deed.tar.gz
dna-backup-2a048d5d8b2b25326685ba53fc390781ba96deed.zip
move maps inside repo
Diffstat (limited to 'repo_test.go')
-rw-r--r--repo_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/repo_test.go b/repo_test.go
index b09f6ed..694c413 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -188,11 +188,11 @@ func TestBsdiff(t *testing.T) {
oldChunks := make(chan StoredChunk, 16)
versions := repo.loadVersions()
go repo.loadChunks(versions, oldChunks)
- fingerprints, sketches := repo.hashChunks(oldChunks)
+ repo.hashChunks(oldChunks)
// Read new data
reader := getDataStream(dataDir, concatFiles)
- recipe := repo.matchStream(reader, fingerprints, sketches)
+ recipe := repo.matchStream(reader)
newChunks := extractDeltaChunks(repo.mergeTempChunks(recipe))
assertLen(t, 2, newChunks, "New delta chunks:")
for _, c := range newChunks {