mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
chore: simplify benchmark cleanup
This commit is contained in:
@@ -250,9 +250,7 @@ func Benchmark_Etcd_Set(b *testing.B) {
|
||||
require.NoError(b, err)
|
||||
|
||||
// Clean up the key after benchmark
|
||||
b.StopTimer()
|
||||
_ = testStore.Delete(key)
|
||||
b.StartTimer()
|
||||
require.NoError(b, testStore.Delete(key))
|
||||
}
|
||||
|
||||
func Benchmark_Etcd_Get(b *testing.B) {
|
||||
@@ -272,9 +270,7 @@ func Benchmark_Etcd_Get(b *testing.B) {
|
||||
require.NoError(b, err)
|
||||
|
||||
// Clean up after benchmark
|
||||
b.StopTimer()
|
||||
_ = testStore.Delete(key)
|
||||
b.StartTimer()
|
||||
require.NoError(b, testStore.Delete(key))
|
||||
}
|
||||
|
||||
func Benchmark_Etcd_SetAndDelete(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user