From 3c91bb4bacb403e587a8b09855f6162a36727889 Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 23 Oct 2023 13:59:04 -0500 Subject: [PATCH] restore bench test --- benchmarks_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks_test.go b/benchmarks_test.go index 77241c8..c06b897 100644 --- a/benchmarks_test.go +++ b/benchmarks_test.go @@ -121,7 +121,7 @@ func TestBenchmark_Cleanup(t *testing.T) { MinRespTime: (time.Millisecond * 50).Microseconds(), MaxRespTime: (time.Millisecond * 50).Microseconds()}, res) } { - res := bench.Stats(time.Minute - time.Second) + res := bench.Stats(time.Minute) t.Logf("%+v", res) assert.Equal(t, BenchmarkStats{Requests: 60, RequestsSec: 1, AverageRespTime: 50000, MinRespTime: (time.Millisecond * 50).Microseconds(), MaxRespTime: (time.Millisecond * 50).Microseconds()}, res)