From 0bb070d45d4935508b7cc81135ef6f5674a03269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 24 Nov 2025 15:03:03 +0100 Subject: [PATCH] chore: simplify benchmark cleanup --- etcd/etcd_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/etcd/etcd_test.go b/etcd/etcd_test.go index 50cfad88..74bd7754 100644 --- a/etcd/etcd_test.go +++ b/etcd/etcd_test.go @@ -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) {