Skip to content

Conversation

@id-ms
Copy link
Contributor

@id-ms id-ms commented Feb 14, 2022

Summary

Fix a bug in the REST API testing.

Test Plan

Run via CircleCI.

@id-ms id-ms force-pushed the remove-parallel-from-testtxnmerkleproof branch from 243f2b0 to f3fea11 Compare February 14, 2022 20:54
@id-ms id-ms requested a review from tsachiherman February 14, 2022 21:27
t.Fatal("it is currently round 0 but we need to wait for a transaction that might happen this round but we'll never know if that happens because ConfirmedRound==0 is indestinguishable from not having happened")
}
timeoutTime := time.Now().Add(30 * time.Second)
timeoutTime := time.Now().Add(timeout)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're using this method in 6 places : in 3 calls we pass in 15 seconds, and in 3 calls we pass 30 seconds.

so, for the cases where the timeout was 15 second, we're going to wait now 15 seconds instead of 30 seconds.
Would that trigger any fail cases ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should increase the timeout to be at least 30 sec.
what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(note that I do think that this is the correct course of action)

@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2022

Codecov Report

Merging #3628 (a4d7432) into master (212edb3) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3628   +/-   ##
=======================================
  Coverage   48.06%   48.06%           
=======================================
  Files         381      381           
  Lines       62080    62080           
=======================================
+ Hits        29836    29841    +5     
+ Misses      28822    28816    -6     
- Partials     3422     3423    +1     
Impacted Files Coverage Δ
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
crypto/merkletrie/trie.go 66.42% <0.00%> (-2.19%) ⬇️
crypto/merkletrie/node.go 91.62% <0.00%> (-1.87%) ⬇️
ledger/blockqueue.go 83.90% <0.00%> (-1.15%) ⬇️
network/wsPeer.go 68.61% <0.00%> (+0.55%) ⬆️
catchup/service.go 70.12% <0.00%> (+0.74%) ⬆️
data/transactions/verify/txn.go 45.02% <0.00%> (+0.86%) ⬆️
ledger/acctupdates.go 66.60% <0.00%> (+1.13%) ⬆️
ledger/roundlru.go 96.22% <0.00%> (+5.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 212edb3...a4d7432. Read the comment docs.

@tsachiherman tsachiherman merged commit 10a5401 into algorand:master Feb 15, 2022
@id-ms id-ms deleted the remove-parallel-from-testtxnmerkleproof branch February 15, 2022 08:16
@onetechnical onetechnical changed the title remove Parallel from txnproofs and fix timeout bug testing: remove Parallel from txnproofs and fix timeout bug Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants