Skip to content

Commit

Permalink
Merge pull request #773 from dgraph-io/martinmr/fix-warnings
Browse files Browse the repository at this point in the history
Fix go health report warnings.
  • Loading branch information
jarifibrahim authored Apr 19, 2019
2 parents 4f863b3 + a6381bb commit 1fcc96e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ func TestBuildKeyValueSizeHistogram(t *testing.T) {
return err
}

if err := txn.Set([]byte("AAA"), []byte("BBB")); err != nil {
return err
}
return nil
return txn.Set([]byte("AAA"), []byte("BBB"))
})
require.NoError(t, err)

Expand All @@ -91,7 +88,7 @@ func TestBuildKeyValueSizeHistogram(t *testing.T) {
require.Equal(t, int64(6), valueHistogram.sum)
require.Equal(t, int64(6), keyHistogram.sum)

// Lenght 1 key is in first bucket, length 2 and 3 are in the second
// Length 1 key is in first bucket, length 2 and 3 are in the second
// bucket
require.Equal(t, int64(1), valueHistogram.countPerBin[0])
require.Equal(t, int64(2), valueHistogram.countPerBin[1])
Expand Down

0 comments on commit 1fcc96e

Please sign in to comment.