-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore e2e tests for full transaction lifecycle after introducing sci callback #995
Chore e2e tests for full transaction lifecycle after introducing sci callback #995
Conversation
18a5f06
to
cc97225
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally ok, but a lot of minor stuff so I am marking as request changes
to follow up on this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spoke through email with Igor from Golem recently, and he said that there is a way to make those payment transaction x6 faster. This is what he wrote:
...
powyzsze kroki realizuje klasa GNTConverter, która znajduje się w SCI, więc może będzie łatwiej z niej skorzystać.
API GNTConvertera jest następujące:
0. Musisz mieć GNT na koncie, więc wykonujesz to po request_gnt_from_faucet
1. Wołasz convert z wartością, którą chcesz przekonwertować
2. Wołasz is_converting w pętli (co 15 sekund na przykład) aż zwróci False, wtedy konwersja będzie zakończona. Całość może potrwać ~5min dla świeżego konta i ~3min dla używanego.
Golem nie korzysta z tej klasy właśnie przez aktywne oczekiwanie i przez to, że implementacja jest lekko nieoptymalna i można uzyskać krótszy czas oczekiwania, ale zostawiłem ją dla wygody do testów.
I dla zwiększenia szybkości testów na testnecie można sobie nadpisać stałą REQUIRED_CONFS na 1, wtedy wszystkie transakcje będą potwierdzone 6x szybciej, więc oczekiwania będzie dużo mniejszy :)
Sounds like a good idea (well, as long as orphaned blocks are not common on the testnet; I'll take Igor's word for that). This would require setting We could add a setting like @dybi If you think it's a good idea, we could create an issue for this. |
d7efafb
to
1bcc4c8
Compare
ade63c9
to
bab8de3
Compare
If the test cases in this pull request are based on examples from the #996 blueprint, please note that the expected results might change a little. You may need to update the pull request or create another after the blueprint is updated. |
cf06634
to
8b46fda
Compare
8b46fda
to
5a43dd0
Compare
This PR doesn't change logic at all. I think any changes to tests logic should be done in different PR. |
File with all necessary tools to create requestor's and provider's account and deposit tokens into theirs accounts.
Private and public keys needs to be changed because now keys are dependent on accounts which are given from SCIBaseTest
5460151
to
486fd1e
Compare
486fd1e
to
db81c5d
Compare
Resolve #744
Resolve #970
I haven't find any better name for
SCIBaseTest
so if you guys will have any idea for better name just tell me :)