aboutsummaryrefslogtreecommitdiffstats
path: root/prog/heatmap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/heatmap_test.go')
-rw-r--r--prog/heatmap_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/heatmap_test.go b/prog/heatmap_test.go
index 4103a4f97..9c891f258 100644
--- a/prog/heatmap_test.go
+++ b/prog/heatmap_test.go
@@ -57,10 +57,10 @@ func TestGenericHeatmap(t *testing.T) {
t.Fatalf("bad decode: %v", err)
}
for i := 0; i < iters; i++ {
- hm := MakeGenericHeatmap(data).(*GenericHeatmap)
+ hm := MakeGenericHeatmap(data, r).(*GenericHeatmap)
for j := 0; j < tries; j++ {
- index := hm.ChooseLocation(r)
+ index := hm.ChooseLocation()
if !checkIndex(index, len(data), test.regions) {
hm.debugPrint(t, data, test.regions)
t.Fatalf("selected index %d does not fall in a region\n", index)