Skip to content

Commit

Permalink
chore: make it simpler!
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
  • Loading branch information
EclesioMeloJunior and qdm12 authored Jan 12, 2023
1 parent d595e9e commit 8ee821f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/rpc/rpc_03-chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ func TestChainRPC(t *testing.T) {
err = retry.UntilOK(ctx, retryWaitDuration, func() (ok bool, err error) {
var blockHash string
fetchWithTimeout(ctx, t, "chain_getBlockHash", "[]", &blockHash)

if finalizedHash == blockHash {
return false, nil
}
return true, nil
return finalizedHash != blockHash, nil
})
require.NoError(t, err)

Expand Down

0 comments on commit 8ee821f

Please sign in to comment.