From c24aef63d06925383d220861cda80a18b96a5754 Mon Sep 17 00:00:00 2001 From: Damien Tournoud Date: Tue, 2 Jun 2020 10:23:46 -0700 Subject: [PATCH] Fix build on golang tip (#1355) Golang tip tests fail with: ./histogram_test.go:31:42: conversion from int64 to string yields a string of one rune --- histogram_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/histogram_test.go b/histogram_test.go index 463738d93..c27240026 100644 --- a/histogram_test.go +++ b/histogram_test.go @@ -27,7 +27,7 @@ func TestBuildKeyValueSizeHistogram(t *testing.T) { runBadgerTest(t, nil, func(t *testing.T, db *DB) { entries := int64(40) err := db.Update(func(txn *Txn) error { - for i := int64(0); i < entries; i++ { + for i := rune(0); i < rune(entries); i++ { err := txn.SetEntry(NewEntry([]byte(string(i)), []byte("B"))) if err != nil { return err