-
Notifications
You must be signed in to change notification settings - Fork 22
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
GOTH - Power outage test #668
Conversation
019109a
to
e19240a
Compare
e19240a
to
326f23e
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.
After rethinking, I don't want to move this test to yagna repository. Probably this test belongs to testing session set
|
||
logger.debug("Stopping provider 1") | ||
await provider_1.stop() | ||
provider_1.container.stop() |
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.
Since goth
version 0.7.2
(latest patch release) Container.stop
gets called as part of Probe.stop
, so this line is no longer necessary. :)
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.
awesome, goth keeps getting better :D
logger.info("All tasks computed, waiting for Golem shutdown") | ||
|
||
await cmd_monitor.wait_for_pattern(".*Unpaid agreements: .*") | ||
logger.info("Expected 1 unpaid agreement") |
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.
logger.info("Expected 1 unpaid agreement") | |
logger.info("Found expected unpaid agreement") |
await provider_1.stop() | ||
provider_1.container.stop() | ||
logger.info("Provider 1 stopped.") | ||
provider_1.container.restart() |
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.
And this shouldn't be necessary with goth
version 0.7.3
. :D
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.
great! can update this in a cleanup PR if needed :)
Resolves: golemfactory/yagna#1508
Add a power outage test where one provider is stopped after receiving a task data.
The test expects all tasks to be finished but not all invoices to be paid.
Possible improvements: