mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-23 01:41:31 +00:00
Fix lint errors (#190)
* use increment and decrement operators. * remove unnecessary else branches. * fix receiver names. * remove omittable code. * fix dot imports.
This commit is contained in:
committed by
Anton Kaliaev
parent
a557bb4d0b
commit
ee67e34519
@ -33,13 +33,13 @@ func TestParallel(t *testing.T) {
|
||||
taskResult, ok := trs.LatestResult(i)
|
||||
if !ok {
|
||||
assert.Fail(t, "Task #%v did not complete.", i)
|
||||
failedTasks += 1
|
||||
failedTasks++
|
||||
} else if taskResult.Error != nil {
|
||||
assert.Fail(t, "Task should not have errored but got %v", taskResult.Error)
|
||||
failedTasks += 1
|
||||
failedTasks++
|
||||
} else if !assert.Equal(t, -1*i, taskResult.Value.(int)) {
|
||||
assert.Fail(t, "Task should have returned %v but got %v", -1*i, taskResult.Value.(int))
|
||||
failedTasks += 1
|
||||
failedTasks++
|
||||
} else {
|
||||
// Good!
|
||||
}
|
||||
|
Reference in New Issue
Block a user