performance: removed require call from benchmark test
This commit is contained in:
parent
eeb2fb7004
commit
6ef7837614
1 changed files with 6 additions and 2 deletions
|
@ -35,8 +35,12 @@ func BenchmarkTXPerformanceTest(t *testing.B) {
|
||||||
t.ResetTimer()
|
t.ResetTimer()
|
||||||
|
|
||||||
for n := 0; n < t.N; n++ {
|
for n := 0; n < t.N; n++ {
|
||||||
require.Equal(t, server.RelayTxn(data[n]), network.RelaySucceed)
|
if server.RelayTxn(data[n]) != network.RelaySucceed {
|
||||||
require.Equal(t, server.RelayTxn(data[n]), network.RelayAlreadyExists)
|
t.Fail()
|
||||||
|
}
|
||||||
|
if server.RelayTxn(data[n]) != network.RelayAlreadyExists {
|
||||||
|
t.Fail()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
chain.Close()
|
chain.Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue