mvcc: remove unused parameters

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-05-09 13:57:33 -07:00
parent b7443ad849
commit 1a83c6ad80

View File

@ -639,13 +639,13 @@ func TestKVRestore(t *testing.T) {
kvss = append(kvss, r.KVs)
}
keysBefore := readGaugeInt(&keysGauge)
keysBefore := readGaugeInt(keysGauge)
s.Close()
// ns should recover the the previous state from backend.
ns := NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil)
if keysRestore := readGaugeInt(&keysGauge); keysBefore != keysRestore {
if keysRestore := readGaugeInt(keysGauge); keysBefore != keysRestore {
t.Errorf("#%d: got %d key count, expected %d", i, keysRestore, keysBefore)
}
@ -664,9 +664,9 @@ func TestKVRestore(t *testing.T) {
}
}
func readGaugeInt(g *prometheus.Gauge) int {
func readGaugeInt(g prometheus.Gauge) int {
ch := make(chan prometheus.Metric, 1)
keysGauge.Collect(ch)
g.Collect(ch)
m := <-ch
mm := &dto.Metric{}
m.Write(mm)