Skip to content

Commit

Permalink
Fix build on golang tip (#1355)
Browse files Browse the repository at this point in the history
Golang tip tests fail with:

./histogram_test.go:31:42: conversion from int64 to string yields a string of one rune
  • Loading branch information
damz authored Jun 2, 2020
1 parent a7e239e commit 543f353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 543f353

Please sign in to comment.