performance: removed require call from benchmark test

This commit is contained in:
Vsevolod Brekelov 2019-12-13 16:13:01 +03:00
parent eeb2fb7004
commit 6ef7837614

View file

@ -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()
}