close PeerStore after benchmarks

This commit is contained in:
Leo Balduf 2016-08-11 20:39:09 -04:00 committed by Jimmy Zelinskie
parent 94dc902b20
commit d3f153c938

View file

@ -88,6 +88,11 @@ func runBenchmark(b *testing.B, ps PeerStore, parallel bool, sf setupFunc, ef ex
}
}
b.StopTimer()
errChan := ps.Stop()
for err := range errChan {
b.Fatal(err)
}
}
func Put(b *testing.B, ps PeerStore) {