From e2d64a027a72f7db99d98ab9652f3e509b86d344 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 6 Sep 2021 16:57:47 +0200 Subject: generate new Polynomial only once --- sketch_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sketch_test.go') 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) } -- cgit v1.2.3