Skip to content

Commit

Permalink
Fix build on golang tip
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 committed Jun 2, 2020
1 parent a7e239e commit cbecdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
func TestBuildKeyValueSizeHistogram(t *testing.T) {
t.Run("All same size key-values", func(t *testing.T) {
runBadgerTest(t, nil, func(t *testing.T, db *DB) {
entries := int64(40)
entries := rune(40)
err := db.Update(func(txn *Txn) error {
for i := int64(0); i < entries; i++ {
for i := rune(0); i < entries; i++ {
err := txn.SetEntry(NewEntry([]byte(string(i)), []byte("B")))
if err != nil {
return err
Expand Down

0 comments on commit cbecdc1

Please sign in to comment.