From 630c4b8e3df4a76cbc6bf23af8217f6a39688d0b Mon Sep 17 00:00:00 2001 From: Damien Tournoud Date: Tue, 2 Jun 2020 07:42:44 -0700 Subject: [PATCH] Fix build on golang tip 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