aboutsummaryrefslogtreecommitdiff
path: root/sketch_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-06 16:57:47 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-06 17:26:30 +0200
commite2d64a027a72f7db99d98ab9652f3e509b86d344 (patch)
treef3d23663568bdf52cd4737e31630e4766910f6be /sketch_test.go
parentb31f22ff61b69a0cb3e0a9d7955133b5304f4ff7 (diff)
downloaddna-backup-e2d64a027a72f7db99d98ab9652f3e509b86d344.tar.gz
dna-backup-e2d64a027a72f7db99d98ab9652f3e509b86d344.zip
generate new Polynomial only once
Diffstat (limited to 'sketch_test.go')
-rw-r--r--sketch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sketch_test.go b/sketch_test.go
index d08e2e3..3dce9b5 100644
--- a/sketch_test.go
+++ b/sketch_test.go
@@ -15,7 +15,7 @@ func TestSketchChunk(t *testing.T) {
var i int
for c := range chunks {
if i < 1 {
- sketch, err := SketchChunk(c, 8<<10, 32, 3, 4)
+ sketch, err := SketchChunk(c, repo.pol, 8<<10, 32, 3, 4)
if err != nil {
t.Error(err)
}
@@ -25,7 +25,7 @@ func TestSketchChunk(t *testing.T) {
}
}
if i == 14 {
- sketch, err := SketchChunk(c, 8<<10, 32, 3, 4)
+ sketch, err := SketchChunk(c, repo.pol, 8<<10, 32, 3, 4)
if err != nil {
t.Error(err)
}