From ab3da5c8af912cd16b7d80e5d13ec7eb7c390833 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 4 May 2015 22:11:53 +0200 Subject: [PATCH] archiver: Remove trees and packs from dedup test --- archiver_test.go | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/archiver_test.go b/archiver_test.go index e0fbae084..8df364cf4 100644 --- a/archiver_test.go +++ b/archiver_test.go @@ -185,19 +185,11 @@ func archiveWithDedup(t testing.TB) { t.Logf("packs %v, data blobs %v, tree blobs %v", cnt.after.packs, cnt.after.dataBlobs, cnt.after.treeBlobs) - // if there are more packs or blobs, something is wrong - if cnt.after.packs > cnt.before.packs { - t.Fatalf("TestArchiverDedup: too many packs in repository: before %d, after %d", - cnt.before.packs, cnt.after.packs) - } + // if there are more data blobs, something is wrong if cnt.after.dataBlobs > cnt.before.dataBlobs { t.Fatalf("TestArchiverDedup: too many data blobs in repository: before %d, after %d", cnt.before.dataBlobs, cnt.after.dataBlobs) } - if cnt.after.treeBlobs > cnt.before.treeBlobs { - t.Fatalf("TestArchiverDedup: too many tree blobs in repository: before %d, after %d", - cnt.before.treeBlobs, cnt.after.treeBlobs) - } // archive the same files again, with a parent snapshot sn3 := SnapshotDir(t, server, *benchArchiveDirectory, sn2.ID()) @@ -210,19 +202,11 @@ func archiveWithDedup(t testing.TB) { t.Logf("packs %v, data blobs %v, tree blobs %v", cnt.after2.packs, cnt.after2.dataBlobs, cnt.after2.treeBlobs) - // if there are more packs or blobs, something is wrong - if cnt.after2.packs > cnt.before.packs { - t.Fatalf("TestArchiverDedup: too many packs in repository: before %d, after %d", - cnt.before.packs, cnt.after2.packs) - } + // if there are more data blobs, something is wrong if cnt.after2.dataBlobs > cnt.before.dataBlobs { t.Fatalf("TestArchiverDedup: too many data blobs in repository: before %d, after %d", cnt.before.dataBlobs, cnt.after2.dataBlobs) } - if cnt.after2.treeBlobs > cnt.before.treeBlobs { - t.Fatalf("TestArchiverDedup: too many tree blobs in repository: before %d, after %d", - cnt.before.treeBlobs, cnt.after2.treeBlobs) - } } func TestArchiveDedup(t *testing.T) {