From 6ef78376142f4ac549b187bebd4128d14961d6a7 Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Fri, 13 Dec 2019 16:13:01 +0300 Subject: [PATCH] performance: removed require call from benchmark test --- integration/performance_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integration/performance_test.go b/integration/performance_test.go index 2a3b8789d..19e8b5c9b 100644 --- a/integration/performance_test.go +++ b/integration/performance_test.go @@ -35,8 +35,12 @@ func BenchmarkTXPerformanceTest(t *testing.B) { t.ResetTimer() for n := 0; n < t.N; n++ { - require.Equal(t, server.RelayTxn(data[n]), network.RelaySucceed) - require.Equal(t, server.RelayTxn(data[n]), network.RelayAlreadyExists) + if server.RelayTxn(data[n]) != network.RelaySucceed { + t.Fail() + } + if server.RelayTxn(data[n]) != network.RelayAlreadyExists { + t.Fail() + } } chain.Close() }